ipv6: Fix the return value of Set Hop-by-Hop options header with NULL data pointer
authorYang Hongyang <yanghy@cn.fujitsu.com>
Mon, 4 Aug 2008 01:16:15 +0000 (18:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Aug 2008 01:16:15 +0000 (18:16 -0700)
When Set Hop-by-Hop options header with NULL data
pointer and optlen is not zero use setsockopt(),
the kernel successfully return 0 instead of
return error EINVAL or EFAULT.

This patch fix the problem.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found