[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #58406] MQTT example wrong call order

From: ahmedwahdan
Subject: [lwip-devel] [bug #58406] MQTT example wrong call order
Date: Tue, 19 May 2020 21:17:08 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36


                 Summary: MQTT example wrong call order
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: ahmedwahdan
            Submitted on: Wed 20 May 2020 01:17:06 AM UTC
                Category: apps
                Severity: 3 - Normal
              Item Group: Crash Error
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: 2.1.1



In MQTT example, calling "mqtt_client_connec" after "mqtt_set_inpub_callback"
causes the callback to be null as the client is cleared in connect function.
  /* Wipe clean */
  memset(client, 0, sizeof(mqtt_client_t));

Also the callback is not checked before call in "mqtt_message_received" which
causes a crash.

Thank you!


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]