mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
6lo: Avoid null ptr dereference when DAC=1, DAM=00, M=1
This commit is contained in:
parent
0fd85f982d
commit
0ba9fd3456
@ -367,7 +367,7 @@ size_t gnrc_sixlowpan_iphc_decode(gnrc_pktsnip_t **dec_hdr, gnrc_pktsnip_t *pkt,
|
||||
dci = iphc_hdr[CID_EXT_IDX] & 0x0f;
|
||||
}
|
||||
|
||||
if (iphc_hdr[IPHC2_IDX] & SIXLOWPAN_IPHC2_DAM) {
|
||||
if (iphc_hdr[IPHC2_IDX] & (SIXLOWPAN_IPHC2_M | SIXLOWPAN_IPHC2_DAM)) {
|
||||
ctx = gnrc_sixlowpan_ctx_lookup_id(dci);
|
||||
|
||||
if (ctx == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user