1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/net/gnrc/network_layer/ipv6
Martine Lenders ea1708b402 gnrc_ipv6_ext: don't read from pkt->data after _demux()
`_demux()` might change `pkt->data` in all kind of ways (moving it due
to `gnrc_pktbuf_mark()`, though unlikely; releasing it, because e.g. it
starts with a fragment header that marks a fragmented packet containing
only one fragment, etc.) so accessing the pointer *after* calling
`_demux()` is somewhat playing with fire. This change avoids this by
storing the value of `ext_hdr->nh` (all we are interested in here) in a
temporary variable that then is used to set the out-parameter `nh`.

`protnum` needs to be unchanged before the call to `_demux()` as it was
set by the previous iteration and determines what extension header
actually is handled.
2019-05-24 22:11:22 +02:00
..
blacklist gnrc: fix build of gnrc_ipv6_blacklist when ENABLE_DEBUG is disabled 2018-04-06 14:48:32 +02:00
ext gnrc_ipv6_ext: don't read from pkt->data after _demux() 2019-05-24 22:11:22 +02:00
hdr sys: net: adapt to compile-checked debug messages 2018-01-15 14:37:04 +01:00
nib Merge pull request #10483 from miri64/gnrc_ipv6_nib/fix/no-auto-config-wo-l2addr 2019-04-19 08:53:25 +02:00
whitelist sys: net: adapt to compile-checked debug messages 2018-01-15 14:37:04 +01:00
gnrc_ipv6.c Merge pull request #11166 from miri64/gnrc_ipv6/fix/send-empty-payload 2019-03-27 19:17:01 +01:00
Makefile gnrc: make all gnrc modules sub-modules of gnrc 2015-08-18 23:00:07 +02:00