diff options
Diffstat (limited to 'net/ipv6/raw.c')
| -rw-r--r-- | net/ipv6/raw.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 7d0adb612bdd..44ee7a2e72ac 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -793,7 +793,8 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)  		if (!proto)  			proto = inet->inet_num; -		else if (proto != inet->inet_num) +		else if (proto != inet->inet_num && +			 inet->inet_num != IPPROTO_RAW)  			return -EINVAL;  		if (proto > 255)  | 
