Commit be769230 authored by Chris Wright's avatar Chris Wright Committed by David S. Miller

[IPV4]: Fix return value on MCAST_MSFILTER error case.

parent 9b10f4ba
...@@ -800,7 +800,7 @@ int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int opt ...@@ -800,7 +800,7 @@ int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int opt
goto mc_msf_out; goto mc_msf_out;
} }
if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) { if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) {
err = EINVAL; err = -EINVAL;
goto mc_msf_out; goto mc_msf_out;
} }
msize = IP_MSFILTER_SIZE(gsf->gf_numsrc); msize = IP_MSFILTER_SIZE(gsf->gf_numsrc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment