mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
f15b86158b
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) |
||
---|---|---|
.. | ||
about | ||
antelope | ||
at-master | ||
calc | ||
cmdd | ||
codeprop | ||
collect-view | ||
dhcp | ||
directory | ||
er-coap | ||
ftp | ||
http-post-auth | ||
httpd-ws | ||
ipso-objects | ||
irc | ||
json | ||
mqtt | ||
netconf | ||
oma-lwm2m | ||
orchestra | ||
ping6 | ||
powertrace | ||
process-list | ||
program-handler | ||
rest-engine | ||
serial-shell | ||
servreg-hack | ||
shell | ||
slip-cmd | ||
telnet | ||
telnetd | ||
unit-test | ||
webbrowser | ||
webserver | ||
webserver-nano |