Skip to content
Snippets Groups Projects
Commit e8e9619f authored by Peter Kietzmann's avatar Peter Kietzmann
Browse files

Merge pull request #5501 from Yonezawa-T2/gnrc_sixlowpan_iphc_propagate_error

gnrc_sixlowpan_iphc: propagate UDP decode error
parents c6e18a91 ba4b099d
No related branches found
No related tags found
No related merge requests found
...@@ -499,7 +499,12 @@ size_t gnrc_sixlowpan_iphc_decode(gnrc_pktsnip_t **dec_hdr, gnrc_pktsnip_t *pkt, ...@@ -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) { switch (iphc_hdr[payload_offset] & NHC_ID_MASK) {
case NHC_UDP_ID: case NHC_UDP_ID:
payload_offset = iphc_nhc_udp_decode(pkt, dec_hdr, datagram_size, 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); *nh_len += sizeof(udp_hdr_t);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment