From ad92992bb6ea19cfdd19dadb78752677f747249e Mon Sep 17 00:00:00 2001 From: YOSHIFUJI Hideaki Date: Thu, 12 Jun 2008 03:14:51 +0900 Subject: [PATCH] --- yaml --- r: 98090 b: refs/heads/master c: 28d4488216645cd71402925cffde9528b0cfdb7e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/ipv6/ipv6_sockglue.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 5e82c8f7a994..723e4740361b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e8766fc86b34d44a8c55a2f9d71da69e091b1ca4 +refs/heads/master: 28d4488216645cd71402925cffde9528b0cfdb7e diff --git a/trunk/net/ipv6/ipv6_sockglue.c b/trunk/net/ipv6/ipv6_sockglue.c index ce794d6acb70..9a3697172d5e 100644 --- a/trunk/net/ipv6/ipv6_sockglue.c +++ b/trunk/net/ipv6/ipv6_sockglue.c @@ -458,6 +458,8 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname, case IPV6_MULTICAST_LOOP: if (optlen < sizeof(int)) goto e_inval; + if (val != valbool) + goto e_inval; np->mc_loop = valbool; retv = 0; break;