gnrc_icmpv6: release when received packet too short

This commit is contained in:
Martine Lenders 2019-01-24 15:49:53 +01:00
parent bbde73eb81
commit 8c1cf53d28

View File

@ -69,6 +69,7 @@ void gnrc_icmpv6_demux(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt)
if (icmpv6->size < sizeof(icmpv6_hdr_t)) {
DEBUG("icmpv6: packet too short.\n");
gnrc_pktbuf_release(pkt);
return;
}