mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-22 16:15:05 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user