diff options
Diffstat (limited to 'net/ipv6/ipv6_sockglue.c')
-rw-r--r-- | net/ipv6/ipv6_sockglue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index 3eef8e5b3636..1afe210d6286 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c | |||
@@ -161,6 +161,9 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname, | |||
161 | struct ipv6_txoptions *opt; | 161 | struct ipv6_txoptions *opt; |
162 | struct sk_buff *pktopt; | 162 | struct sk_buff *pktopt; |
163 | 163 | ||
164 | if (sk->sk_type == SOCK_RAW) | ||
165 | break; | ||
166 | |||
164 | if (sk->sk_protocol != IPPROTO_UDP && | 167 | if (sk->sk_protocol != IPPROTO_UDP && |
165 | sk->sk_protocol != IPPROTO_UDPLITE && | 168 | sk->sk_protocol != IPPROTO_UDPLITE && |
166 | sk->sk_protocol != IPPROTO_TCP) | 169 | sk->sk_protocol != IPPROTO_TCP) |