Skip to content
Commit cfb266c0 authored by Yang Hongyang's avatar Yang Hongyang Committed by David S. Miller
Browse files

ipv6: Fix the return value of Set Hop-by-Hop options header with NULL data pointer



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: default avatarYang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1730554f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment