diff options
Diffstat (limited to 'net/ipv4/ipmr.c')
| -rw-r--r-- | net/ipv4/ipmr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index b6c5c1c872c4..f89cff8b3c25 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c @@ -860,7 +860,8 @@ int ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen) switch(optname) { case MRT_INIT: - if(sk->type!=SOCK_RAW || inet_sk(sk)->num!=IPPROTO_IGMP) + if (sk->sk_type != SOCK_RAW || + inet_sk(sk)->num != IPPROTO_IGMP) return -EOPNOTSUPP; if(optlen!=sizeof(int)) return -ENOPROTOOPT; |
