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:
Florian Vaussard <florian.vaussard@gmail.com>
Loading
Please sign in to comment