[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #10037] Fix example for MQTT application
From: |
Jonathan D |
Subject: |
[lwip-devel] [patch #10037] Fix example for MQTT application |
Date: |
Tue, 2 Mar 2021 14:39:22 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0 |
URL:
<https://savannah.nongnu.org/patch/?10037>
Summary: Fix example for MQTT application
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: jona
Submitted on: Tue 02 Mar 2021 07:39:20 PM UTC
Category: Contrib
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
There is a bug in mqtt_example.c in the function mqtt_example_init. If we call
first mqtt_set_inpub_callback and then mqtt_client_connect,
mqtt_client_connect zeroed client and everything done in
mqtt_set_inpub_callback is reset (making the call useless).
This even leads to a hard fault in mqtt_message_received because
client->data_cb is called without a check.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 02 Mar 2021 07:39:20 PM UTC Name:
0001-Fix-example-for-MQTT-application.patch Size: 1KiB By: jona
<http://savannah.nongnu.org/patch/download.php?file_id=50976>
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/patch/?10037>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
- [lwip-devel] [patch #10037] Fix example for MQTT application,
Jonathan D <=