Commit e2dd98ba authored by kvakanet's avatar kvakanet Committed by Jonathan karras
Browse files

Update mqtt.c fix for #679

Patch for  "mqtt LWT qos and retain parameters are parsed incorrectly #679"
parent 95e2bbb0
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment