From b2828561283e03cfd8e6d62c51fdb5e8a5838418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20Semhoun?= Date: Wed, 15 Nov 2023 18:23:06 +0100 Subject: [PATCH] Fix query queue mode len test --- core/registration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/registration.c b/core/registration.c index 178a0d60..f73815cb 100644 --- a/core/registration.c +++ b/core/registration.c @@ -1277,7 +1277,7 @@ static int prv_getParameters(multi_option_t * query, else if (lwm2m_strncmp((char *)query->data, QUERY_QUEUE_MODE, QUERY_QUEUE_MODE_LEN) == 0) { if ((*bindingP & BINDING_Q) != 0) goto error; - if (query->len != QUERY_BINDING_LEN) goto error; + if (query->len != QUERY_QUEUE_MODE_LEN) goto error; *bindingP |= BINDING_Q; }