From 4d296b2f78b672bbd39cfdd7068e6fcbcb8d2889 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Mon, 13 Oct 2025 23:17:22 +0100 Subject: [PATCH] Remove magic number --- libcommon/property_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcommon/property_common.c b/libcommon/property_common.c index 1363b2354..0c2b57db8 100644 --- a/libcommon/property_common.c +++ b/libcommon/property_common.c @@ -503,7 +503,7 @@ BROKER_EXPORT int mosquitto_property_add_varint(mosquitto_property **proplist, i { mosquitto_property *prop; - if(!proplist || value > 268435455){ + if(!proplist || value > MQTT_MAX_PAYLOAD){ return MOSQ_ERR_INVAL; } if(identifier != MQTT_PROP_SUBSCRIPTION_IDENTIFIER){