mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc_udp: add missing duplitation step
This commit is contained in:
parent
39ecc12d9d
commit
af180ef2f1
@ -198,6 +198,7 @@ static void _send(gnrc_pktsnip_t *pkt)
|
|||||||
gnrc_pktbuf_release(pkt);
|
gnrc_pktbuf_release(pkt);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
tmp->next = udp_snip;
|
||||||
hdr = (udp_hdr_t *)udp_snip->data;
|
hdr = (udp_hdr_t *)udp_snip->data;
|
||||||
/* fill in size field */
|
/* fill in size field */
|
||||||
hdr->length = byteorder_htons(gnrc_pkt_len(udp_snip));
|
hdr->length = byteorder_htons(gnrc_pkt_len(udp_snip));
|
||||||
|
Loading…
Reference in New Issue
Block a user