mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #10978 from miri64/gnrc_ipv6_nib/fix/release-when-full
gnrc_ipv6_nib: release packet when NC entry can't be added
This commit is contained in:
commit
ea7f7c2340
@ -1130,6 +1130,7 @@ static bool _resolve_addr(const ipv6_addr_t *dst, gnrc_netif_t *netif,
|
||||
entry = _nib_nc_add(dst, (netif != NULL) ? netif->pid : 0,
|
||||
GNRC_IPV6_NIB_NC_INFO_NUD_STATE_INCOMPLETE);
|
||||
if (entry == NULL) {
|
||||
gnrc_pktbuf_release(pkt);
|
||||
return false;
|
||||
}
|
||||
#if GNRC_IPV6_NIB_CONF_ROUTER
|
||||
|
Loading…
Reference in New Issue
Block a user