Properties are now freed after the callback.
This commit is contained in:
parent
1b854e250e
commit
867fe80e0e
@ -44,7 +44,6 @@ int handle__connack(struct mosquitto *mosq)
|
|||||||
if(mosq->protocol == mosq_p_mqtt5){
|
if(mosq->protocol == mosq_p_mqtt5){
|
||||||
rc = property__read_all(CMD_CONNACK, &mosq->in_packet, &properties);
|
rc = property__read_all(CMD_CONNACK, &mosq->in_packet, &properties);
|
||||||
if(rc) return rc;
|
if(rc) return rc;
|
||||||
mosquitto_property_free_all(&properties);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log__printf(mosq, MOSQ_LOG_DEBUG, "Client %s received CONNACK (%d)", mosq->id, reason_code);
|
log__printf(mosq, MOSQ_LOG_DEBUG, "Client %s received CONNACK (%d)", mosq->id, reason_code);
|
||||||
|
Loading…
Reference in New Issue
Block a user