1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #10860 from miri64/gnrc_ipv6_nib/fix/release-when-queue-full

gnrc_ipv6_nib: release when not queuable on AR
This commit is contained in:
Gunar Schorcht 2019-01-25 12:17:32 +01:00 committed by GitHub
commit 8984a9b80c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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