contiki/apps
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
..
about
antelope
at-master AT driver (master) and example 2016-05-15 12:19:04 +02:00
calc
cmdd Removed CC_FASTCALL. 2015-11-01 18:10:17 +01:00
codeprop Added MSP430X ELFLOADER support to load image with large memory model. 2015-06-15 17:53:18 +05:30
collect-view
dhcp Fix DHCP client retries. 2015-06-21 14:25:52 +02:00
directory
email
er-coap er-coap-observe-client: missing 'addr' parameter 2017-03-23 15:12:42 +01:00
ftp
http-post-auth
httpd-ws
ipso-objects ipso-temperature: Use "Cel" for degrees celsius 2016-05-04 19:21:56 +02:00
irc
json Merge pull request #1438 from jkent/jsonparse 2016-03-11 14:23:17 +01:00
mqtt Check broker IP conversion. Adjust state machine accordingly 2017-03-31 17:33:29 +01:00
netconf
oma-lwm2m Merge pull request #1677 from gebart/pr/lwm2m-instance-list 2016-09-06 16:50:11 +02:00
orchestra Orchestra: avoid a link error for nbr_routes 2017-01-19 13:55:08 +01:00
ping6
powertrace Remove commented-out code 2015-10-20 10:11:47 +02:00
process-list
program-handler Merge pull request #1344 from tsparber/fix-doxygen 2015-11-30 22:07:15 +01:00
rest-engine squash clean up left overs 2016-07-09 10:39:23 +02:00
serial-shell
servreg-hack Remove commented-out code 2015-10-20 10:11:47 +02:00
shell Fixes error when processes name are not used 2016-02-22 16:02:06 +01:00
slip-cmd
telnet
telnetd Added missing charset abstraction. 2015-07-16 17:55:26 +02:00
unit-test
webbrowser Improved dicarding of text in the HTML header. 2016-10-11 11:25:31 +02:00
webserver Add missing variable declaration 2017-03-18 14:01:10 +00:00
webserver-nano Adding a gitattributes and correcting line-endings 2015-09-07 15:40:02 +02:00