summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/parse.y
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-05-25 16:31:23 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-05-25 16:31:23 +0000
commite2398f5219c7473870903f49d7cb42968023e922 (patch)
tree1e450115df5aaa12c7c7cee31396186dc946c11e /sbin/ipsecctl/parse.y
parent46ed6db2f12c2e4fc5b9e0b1a75f2468f5909602 (diff)
do not swap srcid/dstid for INOUT rules.
Diffstat (limited to 'sbin/ipsecctl/parse.y')
-rw-r--r--sbin/ipsecctl/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y
index cdf6000f77e..2da33fac2a5 100644
--- a/sbin/ipsecctl/parse.y
+++ b/sbin/ipsecctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.3 2005/05/25 16:29:21 hshoexer Exp $ */
+/* $OpenBSD: parse.y,v 1.4 2005/05/25 16:31:22 hshoexer Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -726,10 +726,10 @@ reverse_rule(struct ipsec_rule *rule)
reverse->peer = copyhost(rule->peer);
reverse->proto = (u_int8_t)rule->proto;
- if (rule->auth.dstid && (reverse->auth.srcid =
+ if (rule->auth.dstid && (reverse->auth.dstid =
strdup(rule->auth.dstid)) == NULL)
err(1, "strdup");
- if (rule->auth.srcid && (reverse->auth.dstid =
+ if (rule->auth.srcid && (reverse->auth.srcid =
strdup(rule->auth.srcid)) == NULL)
err(1, "strdup");
reverse->auth.idtype = rule->auth.idtype;