dynsec: Fix free on modifyClient.

pull/1919/head
Roger A. Light 5 years ago
parent ba8e888e41
commit 598b1d7b00

@ -700,10 +700,10 @@ int dynsec_clients__process_modify(cJSON *j_responses, struct mosquitto *context
dynsec__command_reply(j_responses, context, "modifyClient", "Internal error", correlation_data);
return MOSQ_ERR_NOMEM;
}
mosquitto_free(client->clientid);
}else{
str = NULL;
}
mosquitto_free(client->clientid);
client->clientid = str;
}

Loading…
Cancel
Save