ipv6: Check ip6_find_1stfragopt() return value properly.

[ Upstream commit 7dd7eb9513 ]

Do not use unsigned variables to see if it returns a negative
error or not.

Fixes: 2423496af3 ("ipv6: Prevent overrun when parsing v6 header options")
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
David S. Miller 2017-05-17 22:54:11 -04:00 • committed by Greg Kroah-Hartman
commit 3fa202ef74
3 changed files with 12 additions and 12 deletions