aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipmr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r--net/ipv4/ipmr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index c757f0b4b74c..694974502ea6 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -956,7 +956,7 @@ int ip_mroute_setsockopt(struct sock *sk, int optname, char __user *optval, unsi
956 switch (optname) { 956 switch (optname) {
957 case MRT_INIT: 957 case MRT_INIT:
958 if (sk->sk_type != SOCK_RAW || 958 if (sk->sk_type != SOCK_RAW ||
959 inet_sk(sk)->num != IPPROTO_IGMP) 959 inet_sk(sk)->inet_num != IPPROTO_IGMP)
960 return -EOPNOTSUPP; 960 return -EOPNOTSUPP;
961 if (optlen != sizeof(int)) 961 if (optlen != sizeof(int))
962 return -ENOPROTOOPT; 962 return -ENOPROTOOPT;