mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc_sixlowpan_frag: release for fragment too big error case
The fragment is released for all other error cases, just not this one.
This commit is contained in:
parent
1f7292c358
commit
4c1d1424c0
@ -121,6 +121,7 @@ static int _rbuf_add(gnrc_netif_hdr_t *netif_hdr, gnrc_pktsnip_t *pkt,
|
|||||||
if ((offset + frag_size) > entry->super.pkt->size) {
|
if ((offset + frag_size) > entry->super.pkt->size) {
|
||||||
DEBUG("6lo rfrag: fragment too big for resulting datagram, discarding datagram\n");
|
DEBUG("6lo rfrag: fragment too big for resulting datagram, discarding datagram\n");
|
||||||
gnrc_pktbuf_release(entry->super.pkt);
|
gnrc_pktbuf_release(entry->super.pkt);
|
||||||
|
gnrc_pktbuf_release(pkt);
|
||||||
rbuf_rm(entry);
|
rbuf_rm(entry);
|
||||||
return RBUF_ADD_ERROR;
|
return RBUF_ADD_ERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user