1
0
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:
Yonezawa-T2 2016-06-03 11:35:22 +09:00
parent a10151d5f0
commit ba4b099d93

View File

@ -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;