Browse Source

mqtt: Prevent NULL pointer dereference before assertion checking

Signed-off-by: Axel Lin <axel.lin@ingics.com>
STABLE-2_1_x
Axel Lin 9 years ago committed by Dirk Ziegelmeier
parent
commit
7faa4bcbe2
  1. 2
      src/apps/mqtt/mqtt.c

2
src/apps/mqtt/mqtt.c

@ -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…
Cancel
Save