mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc_sixlowpan_frag_rb: error when interval buffer is full
This commit is contained in:
parent
54a8599170
commit
0251d6585e
@ -307,6 +307,12 @@ static int _rbuf_add(gnrc_netif_hdr_t *netif_hdr, gnrc_pktsnip_t *pkt,
|
||||
memcpy(((uint8_t *)entry->pkt->data) + offset, data,
|
||||
frag_size);
|
||||
}
|
||||
else {
|
||||
/* no space left in rbuf interval buffer*/
|
||||
gnrc_pktbuf_release(entry->pkt);
|
||||
gnrc_sixlowpan_frag_rb_remove(entry);
|
||||
res = RBUF_ADD_ERROR;
|
||||
}
|
||||
/* no errors and not consumed => release packet */
|
||||
gnrc_pktbuf_release(pkt);
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user