mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-02-06 02:52:07 +08:00
Remove magic number
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user