diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-08-02 18:21:01 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-08-02 18:21:01 +0000 |
commit | d3d27a33a4e8344324828d20b82f22692b4297fb (patch) | |
tree | 5ebc6e3dd44ff40646a782d194e632ffb9fd0292 /sys/netinet | |
parent | 9c1534c10e4a58ed2d80b841f68bc29c343d04e0 (diff) |
Allow viewing of net.inet.ip.sourceroute in secure mode
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 1c9149297ce..4ff356af5d6 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_input.c,v 1.14 1996/07/29 02:34:30 downsj Exp $ */ +/* $OpenBSD: ip_input.c,v 1.15 1996/08/02 18:21:00 tholo Exp $ */ /* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */ /* @@ -1220,7 +1220,7 @@ ip_sysctl(name, namelen, oldp, oldlenp, newp, newlen) /* * Don't allow this to change in a secure environment. */ - if (securelevel > 0) + if (newp && securelevel > 0) return (EPERM); return (sysctl_int(oldp, oldlenp, newp, newlen, &ip_dosourceroute)); |