gnrc_ipv6: fix #3707
This commit is contained in:
parent
82aff54a74
commit
8a07f8c548
@ -519,6 +519,9 @@ static void _send(gnrc_pktsnip_t *pkt, bool prep_hdr)
|
||||
if (ipv6 != pkt) { /* in case packet has netif header */
|
||||
pkt->next = payload;/* pkt is already write-protected so we can do that */
|
||||
}
|
||||
else {
|
||||
pkt = payload; /* pkt is the IPv6 header so we just write-protected it */
|
||||
}
|
||||
ipv6 = payload; /* Reset ipv6 from temporary variable */
|
||||
|
||||
hdr = ipv6->data;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user