Merge branch 'bugfix-MemLeak_in_handle_unsubscribe' of git://github.com/panava/mosquitto into panava-bugfix-MemLeak_in_handle_unsubscribe

This commit is contained in:
Roger A. Light
2020-01-30 14:22:12 +00:00
2 changed files with 8 additions and 2 deletions
+1
View File
@@ -185,6 +185,7 @@ int socks5__send(struct mosquitto *mosq)
}else{
slen = strlen(mosq->host);
if(slen > UCHAR_MAX){
mosquitto__free(packet);
return MOSQ_ERR_NOMEM;
}
packet->packet_length = 7 + slen;