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

gnrc_icmpv6: release when received packet too short

parent bbde73eb
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,7 @@ void gnrc_icmpv6_demux(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt) ...@@ -69,6 +69,7 @@ void gnrc_icmpv6_demux(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt)
if (icmpv6->size < sizeof(icmpv6_hdr_t)) { if (icmpv6->size < sizeof(icmpv6_hdr_t)) {
DEBUG("icmpv6: packet too short.\n"); DEBUG("icmpv6: packet too short.\n");
gnrc_pktbuf_release(pkt);
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment