mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_ipv6_nib: release when not queuable on AR
When a new queue entry is tried to be allocated for a neighbor who's address is currently tried to be resolved there was no error case before. The packet that was tried to be put in the queue was thus not released and stayed in the packet buffer for ever.
This commit is contained in:
parent
03ed77b141
commit
b0beba3c1c
@ -1171,6 +1171,12 @@ static bool _resolve_addr(const ipv6_addr_t *dst, gnrc_netif_t *netif,
|
||||
}
|
||||
gnrc_pktqueue_add(&entry->pktqueue, queue_entry);
|
||||
}
|
||||
else {
|
||||
DEBUG("nib: can't allocate entry for packet queue "
|
||||
"dropping packet\n");
|
||||
gnrc_pktbuf_release(pkt);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
gnrc_icmpv6_error_dst_unr_send(ICMPV6_ERROR_DST_UNR_ADDR,
|
||||
|
Loading…
Reference in New Issue
Block a user