Skip to content
Commit 38866179 authored by Florian Vaussard's avatar Florian Vaussard Committed by Anas Nashif
Browse files

net: icmpv6: Fix error condition



When calling net_frag_read(), frag == NULL is an error only if pos is
not zero. It is thus incorrect to throw an error only if !frag, as
pos must also be checked to be not zero.

Signed-off-by: default avatarFlorian Vaussard <florian.vaussard@gmail.com>
parent c9262bb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment