diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2024-08-20 07:46:28 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2024-08-20 07:46:28 +0000 |
commit | c0a4a91c1c3f2e32650fa335f36f2108333e2b62 (patch) | |
tree | 06420ae5649603e300d28b6787171abaf49b11b2 /sys/netinet/igmp.c | |
parent | 8e6e36c5067aa2399c184ae4bcab8bc036c31d75 (diff) |
Unlock igmp_sysctl(), pfsync_sysctl() and rip6_sysctl(). Each of them is
the only IGMPCTL_STATS, PFSYNCCTL_STATS and RIPV6CTL_STATS per-CPU
counters.
sysctl_rdstruct() has "newp != NULL" check within and also returns
EPERM, no need for redundant check in igmp_sysctl().
ok bluhm
Diffstat (limited to 'sys/netinet/igmp.c')
-rw-r--r-- | sys/netinet/igmp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c index 600731ae36a..dec2c734921 100644 --- a/sys/netinet/igmp.c +++ b/sys/netinet/igmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: igmp.c,v 1.84 2024/08/12 11:25:27 bluhm Exp $ */ +/* $OpenBSD: igmp.c,v 1.85 2024/08/20 07:46:27 mvs Exp $ */ /* $NetBSD: igmp.c,v 1.15 1996/02/13 23:41:25 christos Exp $ */ /* @@ -687,8 +687,6 @@ igmp_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, switch (name[0]) { case IGMPCTL_STATS: - if (newp != NULL) - return (EPERM); return (igmp_sysctl_igmpstat(oldp, oldlenp, newp)); default: return (EOPNOTSUPP); |