1
0
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:
Martine S. Lenders 2019-11-29 18:00:54 +01:00
parent 54a8599170
commit 0251d6585e
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

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