mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 13:34:38 +08:00
mqtt: Prevent NULL pointer dereference before assertion checking
Signed-off-by: Axel Lin <axel.lin@ingics.com> (cherry picked from commit 7faa4bcbe22ba896a96ba76bf92bf4d6869f4d18)
This commit is contained in:
parent
e5071daf45
commit
5fe195c3d3
@ -281,7 +281,7 @@ mqtt_append_request(struct mqtt_request_t **tail, struct mqtt_request_t *r)
|
||||
{
|
||||
struct mqtt_request_t *head = NULL;
|
||||
s16_t time_before = 0;
|
||||
struct mqtt_request_t *iter = *tail;
|
||||
struct mqtt_request_t *iter;
|
||||
|
||||
LWIP_ASSERT("mqtt_append_request: tail != NULL", tail != NULL);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user