contiki-os/contiki — pull request #828 by oskarnp (2014-10-21 13:43:54+00:00)
Title: core/net/rime/ipolite: stop ctimer and reset queuebuf pointer when cance...

...ling old send

Fixes #827

Ipolite is used by netflood and route-discovery modules among others. If a route request is yet to be re-broadcasted and a local route discovery is started (interval == 0), the previous queuebuf used is freed but ctimer and queuebuf pointer is left unchanged. This causes corrupt route requests to be sent, invalid routing tables to be formed, memcmp() on NULL pointer on receive, and other undefined behavior.

Signed-off-by: Oskar Nordquist