gnrc_icmpv6: release when received packet too short
This commit is contained in:
parent
bbde73eb81
commit
8c1cf53d28
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user