mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc_sixlowpan_iphc: propagate UDP decode error
This commit is contained in:
parent
a10151d5f0
commit
ba4b099d93
@ -499,7 +499,12 @@ size_t gnrc_sixlowpan_iphc_decode(gnrc_pktsnip_t **dec_hdr, gnrc_pktsnip_t *pkt,
|
||||
switch (iphc_hdr[payload_offset] & NHC_ID_MASK) {
|
||||
case NHC_UDP_ID:
|
||||
payload_offset = iphc_nhc_udp_decode(pkt, dec_hdr, datagram_size,
|
||||
payload_offset + offset) - offset;
|
||||
payload_offset + offset);
|
||||
|
||||
if (payload_offset != 0) {
|
||||
payload_offset -= offset;
|
||||
}
|
||||
|
||||
*nh_len += sizeof(udp_hdr_t);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user