Update mqtt.c fix for #679
Patch for "mqtt LWT qos and retain parameters are parsed incorrectly #679"
This commit is contained in:
parent
95e2bbb0f0
commit
e2dd98ba10
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue