Skip to content
Snippets Groups Projects
Unverified Commit 5bdf3670 authored by Martine Lenders's avatar Martine Lenders
Browse files

gnrc_ipv6: fix packet snip switch-up

parent 38ee38e7
No related branches found
No related tags found
No related merge requests found
......@@ -795,7 +795,7 @@ static void _receive(gnrc_pktsnip_t *pkt)
/* if available, remove any padding that was added by lower layers
* 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));
}
else if (byteorder_ntohs(hdr->len) >
......
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