1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc_ipv6_ext_frag: _completed: Add comment why list head is not checked

... for NULL pointer dereference.
This commit is contained in:
Martine Lenders 2023-10-12 16:23:53 +02:00
parent 149cee491e
commit 988db6923d
No known key found for this signature in database
GPG Key ID: 2134D77A5336DD80

View File

@ -711,6 +711,7 @@ static gnrc_pktsnip_t *_completed(gnrc_ipv6_ext_frag_rbuf_t *rbuf)
/* clist: first element is second element ;-) (from next of head) */
gnrc_ipv6_ext_frag_limits_t *ptr =
(gnrc_ipv6_ext_frag_limits_t *)rbuf->limits.next->next;
/* ptr should not be NULL at this point so it is safe to dereference with ptr->start here */
if (rbuf->last && (ptr->start == 0)) {
gnrc_pktsnip_t *res = NULL;