From e2dd98ba10a94ff3a03a3801841b2d068fe48db7 Mon Sep 17 00:00:00 2001 From: kvakanet Date: Tue, 20 Oct 2015 13:02:06 +0500 Subject: [PATCH] Update mqtt.c fix for #679 Patch for "mqtt LWT qos and retain parameters are parsed incorrectly #679" --- app/modules/mqtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/mqtt.c b/app/modules/mqtt.c index 1db350af..55ce124c 100644 --- a/app/modules/mqtt.c +++ b/app/modules/mqtt.c @@ -1334,7 +1334,7 @@ static int mqtt_socket_lwt( lua_State* L ) { return luaL_error( L, "need lwt message"); } - + stack++; if(mud->connect_info.will_topic){ // free the previous one if there is any c_free(mud->connect_info.will_topic); mud->connect_info.will_topic = NULL;