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:
parent
149cee491e
commit
988db6923d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user