1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

gnrc_ipv6: fix packet snip switch-up

This commit is contained in:
Martine Lenders 2017-07-21 15:41:36 +02:00
parent 38ee38e791
commit 5bdf3670e3
No known key found for this signature in database
GPG Key ID: 8E97A9FE55F25D62

View File

@ -795,7 +795,7 @@ static void _receive(gnrc_pktsnip_t *pkt)
/* if available, remove any padding that was added by lower layers /* if available, remove any padding that was added by lower layers
* to fulfill their minimum size requirements (e.g. ethernet) */ * to fulfill their minimum size requirements (e.g. ethernet) */
if (byteorder_ntohs(hdr->len) < pkt->size) { if ((ipv6 != pkt) && (byteorder_ntohs(hdr->len) < pkt->size)) {
gnrc_pktbuf_realloc_data(pkt, byteorder_ntohs(hdr->len)); gnrc_pktbuf_realloc_data(pkt, byteorder_ntohs(hdr->len));
} }
else if (byteorder_ntohs(hdr->len) > else if (byteorder_ntohs(hdr->len) >