summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/ipsecctl.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-07-07 21:13:01 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-07-07 21:13:01 +0000
commitc72f30b2467e073602a1ee4109d550af0cadecc0 (patch)
treebe9f1caf8936f90f4ba07f2297652f41b2ce17ea /sbin/ipsecctl/ipsecctl.c
parent8a5114c9f5c0e7096e76478d33bdac4c2cdc8454 (diff)
Do not mix rule types with flow types
Diffstat (limited to 'sbin/ipsecctl/ipsecctl.c')
-rw-r--r--sbin/ipsecctl/ipsecctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ipsecctl/ipsecctl.c b/sbin/ipsecctl/ipsecctl.c
index 5f42601b3a2..b1a562e7aed 100644
--- a/sbin/ipsecctl/ipsecctl.c
+++ b/sbin/ipsecctl/ipsecctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsecctl.c,v 1.14 2005/07/07 21:00:07 hshoexer Exp $ */
+/* $OpenBSD: ipsecctl.c,v 1.15 2005/07/07 21:13:00 hshoexer Exp $ */
/*
* Copyright (c) 2004, 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org>
*
@@ -266,6 +266,7 @@ ipsecctl_get_rules(struct ipsecctl *ipsec)
if (rule == NULL)
err(1, "malloc");
rule->nr = ipsec->rule_nr++;
+ rule->type = RULE_FLOW;
if (pfkey_parse(msg, rule))
errx(1, "failed to parse pfkey message");