1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

gnrc_ipv6_ext_frag: disregard empty fragments

This commit is contained in:
Nils Bernsdorf 2025-12-04 15:38:35 +01:00 committed by Martine Lenders
parent 0e4c7dcaf5
commit 8af2f50a7d
No known key found for this signature in database
GPG Key ID: F35493B97485320B

View File

@ -423,6 +423,10 @@ gnrc_pktsnip_t *gnrc_ipv6_ext_frag_reass(gnrc_pktsnip_t *pkt)
DEBUG("ipv6_ext_frag: unable to mark fragmentation header\n");
goto error_release;
}
else if (pkt->size == 0) {
DEBUG("ipv6_ext_frag: fragment empty after removing header\n");
goto error_release;
}
fh = fh_snip->data;
/* search IPv6 header */
ipv6_snip = gnrc_pktsnip_search_type(pkt, GNRC_NETTYPE_IPV6);