mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-04-11 09:45:12 +02:00
Remove magic number
This commit is contained in:
parent
1bc14e6aa8
commit
4d296b2f78
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue