Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Fix the net.inet6.ipsec6.def_polic...
details: https://anonhg.NetBSD.org/src/rev/0b70c9cd9611
branches: trunk
changeset: 318532:0b70c9cd9611
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Apr 28 13:44:19 2018 +0000
description:
Fix the net.inet6.ipsec6.def_policy node, the variable should be
&ip6_def_policy.policy, otherwise we're overwriting other fields of the
structure.
diffstat:
sys/netipsec/ipsec_netbsd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5fcf2c028ac2 -r 0b70c9cd9611 sys/netipsec/ipsec_netbsd.c
--- a/sys/netipsec/ipsec_netbsd.c Sat Apr 28 13:38:00 2018 +0000
+++ b/sys/netipsec/ipsec_netbsd.c Sat Apr 28 13:44:19 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipsec_netbsd.c,v 1.53 2018/04/22 10:25:40 maxv Exp $ */
+/* $NetBSD: ipsec_netbsd.c,v 1.54 2018/04/28 13:44:19 maxv Exp $ */
/* $KAME: esp_input.c,v 1.60 2001/09/04 08:43:19 itojun Exp $ */
/* $KAME: ah_input.c,v 1.64 2001/09/04 08:43:19 itojun Exp $ */
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipsec_netbsd.c,v 1.53 2018/04/22 10:25:40 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec_netbsd.c,v 1.54 2018/04/28 13:44:19 maxv Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -720,7 +720,7 @@
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
CTLTYPE_INT, "def_policy",
SYSCTL_DESCR("Default action for non-IPSec packets"),
- sysctl_ipsec, 0, (void *)&ip6_def_policy, 0,
+ sysctl_ipsec, 0, &ip6_def_policy.policy, 0,
CTL_NET, PF_INET6, IPPROTO_AH,
IPSECCTL_DEF_POLICY, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
Home |
Main Index |
Thread Index |
Old Index