Skip to content

Commit 557d2aa

Browse files
M1chacfriedt
authored andcommitted
net: mqtt_sn: allow using all of CONFIG_MQTT_SN_LIB_MAX_ADDR_SIZE
The check didn't allow the address to be exactly this size. Signed-off-by: Michael Zimmermann <[email protected]>
1 parent 8ae2856 commit 557d2aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/mqtt_sn/mqtt_sn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ static struct mqtt_sn_gateway *mqtt_sn_gw_create(uint8_t gw_id, short duration,
351351
return NULL;
352352
}
353353

354-
__ASSERT(gw_addr.size < CONFIG_MQTT_SN_LIB_MAX_ADDR_SIZE,
354+
__ASSERT(gw_addr.size <= CONFIG_MQTT_SN_LIB_MAX_ADDR_SIZE,
355355
"Gateway address is larger than allowed by CONFIG_MQTT_SN_LIB_MAX_ADDR_SIZE");
356356

357357
memset(gw, 0, sizeof(*gw));

0 commit comments

Comments
 (0)