1
0
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:
Cenk Gündoğan 2019-02-12 10:43:32 +01:00 committed by GitHub
commit ea7f7c2340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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