Skip to contentSkip to conversation

fix return value on MCAST_MSFILTER error case

PATCH In review Chris Wright 2 participants 2 messages Apr 21, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix return value on MCAST_MSFILTER error case

Return -EINVAL if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen)

===== net/ipv4/ip_sockglue.c 1.22 vs edited =====

net/ipv4/ip_sockglue.c +1 -1
@@ -800,7 +800,7 @@
 				goto mc_msf_out;
 			}
 			if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) {
-				err = EINVAL;
+				err = -EINVAL;
 				goto mc_msf_out;
 			}
 			msize = IP_MSFILTER_SIZE(gsf->gf_numsrc);
#1 lore raw
Quoted 1 line · On Tue, 20 Apr 2004 18:05:51 -0700 Chris Wright <[email protected]> wrote:

Return -EINVAL if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen)

Good catch, applied.

Thanks Chris.