Skip to content
Snippets Groups Projects
Commit c8c8564d authored by Martine Lenders's avatar Martine Lenders
Browse files

gnrc_icmpv6_error: use netapi_dispatch_send instead of netapi_send

parent ba13d8f5
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,12 @@ static gnrc_pktsnip_t *_param_prob_build(uint8_t code, void *ptr,
static void _send(gnrc_pktsnip_t *pkt)
{
if (pkt != NULL) {
gnrc_netapi_send(gnrc_ipv6_pid, pkt);
if (!gnrc_netapi_dispatch_send(GNRC_NETTYPE_IPV6,
GNRC_NETREG_DEMUX_CTX_ALL,
pkt)) {
DEBUG("gnrc_icmpv6_error: No send handler found.\n");
gnrc_pktbuf_release(pkt);
}
}
else {
DEBUG("gnrc_icmpv6_error: No space in packet buffer left\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment