osd-contiki/apps/mqtt
Alexandru-Ioan Pop f15b86158b Check broker IP conversion. Adjust state machine accordingly
The result of converting the IP address of the broker wasn't checked. As a result, the pointer was left uninitialised and the IPv6 address used for connecting was some random data. The function now returns an error. Before connect_to_broker is called, mqtt_register is executed, which memsets conn to 0, making its state 0 (MQTT_CONN_STATE_ERROR). In order to recover from this error state, the extra check was added in the MQTT_CLIENT_STATE_NEWCONFIG state.

This was discovered using [CodeSonar](https://www.grammatech.com/products/codesonar)
2017-03-31 17:33:29 +01:00
..
Makefile.mqtt Add MQTT 3.1 engine 2015-02-17 13:44:29 +01:00
mqtt.c Check broker IP conversion. Adjust state machine accordingly 2017-03-31 17:33:29 +01:00
mqtt.h Add MQTT 3.1 engine 2015-02-17 13:44:29 +01:00