gnrc_ipv6: fix #3707

This commit is contained in:
Martine Lenders 2015-08-25 17:48:17 +02:00
parent 82aff54a74
commit 8a07f8c548

View File

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