Remove magic number

This commit is contained in:
Roger A. Light
2025-10-13 23:17:22 +01:00
parent 1bc14e6aa8
commit 4d296b2f78

View File

@@ -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){