mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +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) |
||
---|---|---|
.. | ||
antelope | ||
avr-rss2 | ||
cc26xx | ||
cc2530dk | ||
cc2538-common | ||
cc2538dk | ||
cfs-coffee | ||
collect | ||
econotag-ecc-test | ||
econotag-flash-test | ||
eeprom-test | ||
er-rest-example | ||
er-rest-example-raven | ||
example-shell | ||
extended-rf-api | ||
fat | ||
ftp | ||
galileo | ||
hello-world | ||
http-socket | ||
ip64-router | ||
ipso-objects | ||
ipv6 | ||
irc | ||
irc-80col | ||
jn516x | ||
llsec/ccm-star-tests | ||
mbxxx | ||
multi-threading | ||
netperf | ||
nrf52dk | ||
openmote-cc2538 | ||
ping-ipv6 | ||
powertrace | ||
ravenusbstick | ||
rime | ||
rime-tsch | ||
rssi-scanner | ||
seedeye/powerswitch | ||
sensniff | ||
servreg-hack | ||
settings-example | ||
sky | ||
sky-ip | ||
sky-shell | ||
sky-shell-exec | ||
sky-shell-webserver | ||
stm32nucleo-spirit1/sensor-demo | ||
tcp-socket | ||
telnet-server | ||
timers | ||
trickle-library | ||
udp-ipv6 | ||
udp-stream | ||
webbrowser | ||
webbrowser-80col | ||
webserver | ||
webserver-ipv6 | ||
webserver-ipv6-raven | ||
websockets | ||
wget | ||
zolertia |