mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-02-06 11:12:09 +08:00
Further fix for CVE-2023-28366.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
Security:
|
||||
- Fix leak on malicious SUBSCRIBE by authenticated client.
|
||||
Closes eclipse #248.
|
||||
- Further fix for CVE-2023-28366.
|
||||
|
||||
Broker:
|
||||
- Fix clients sending a RESERVED packet not being quickly disconnected.
|
||||
|
||||
@@ -155,6 +155,7 @@ int packet__queue(struct mosquitto *mosq, struct mosquitto__packet *packet)
|
||||
|
||||
#ifdef WITH_BROKER
|
||||
if(db.config->max_queued_messages > 0 && mosq->out_packet_count >= db.config->max_queued_messages){
|
||||
packet__cleanup(packet);
|
||||
mosquitto__free(packet);
|
||||
if(mosq->is_dropping == false){
|
||||
mosq->is_dropping = true;
|
||||
|
||||
Reference in New Issue
Block a user