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
..
2016-11-27 22:50:45 +01:00
2015-11-03 22:09:24 +01:00
2015-11-03 22:09:24 +01:00
2016-02-15 09:37:38 +01:00
2016-12-14 12:38:55 +01:00
2016-05-30 10:53:20 +02:00
2015-12-21 08:06:14 -02:00
2016-11-02 21:54:02 +01:00
2016-10-15 15:27:42 +02:00