From e6b8fc5bbde49148e574e028ff702d377c5edf20 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Fri, 6 Nov 2020 12:02:43 +0000 Subject: [PATCH] Fix oversize packet check in CONNECT. --- src/handle_connect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handle_connect.c b/src/handle_connect.c index dc80f6ab..a091edf7 100644 --- a/src/handle_connect.c +++ b/src/handle_connect.c @@ -274,6 +274,7 @@ int connect__on_authorised(struct mosquitto_db *db, struct mosquitto *context, v mosquitto__set_state(context, mosq_cs_active); rc = send__connack(db, context, connect_ack, CONNACK_ACCEPTED, connack_props); + if(rc) return rc; mosquitto_property_free_all(&connack_props); rc = db__message_write_queued_out(db, context); if(rc) return rc;