summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/parse.y
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2008-06-11 22:11:21 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2008-06-11 22:11:21 +0000
commit0a7220dba6d7def0a3626990c96acb6ae3bc281c (patch)
tree3134b5dfc02d1b0a8ff13ad9cb3d5b3fcd182f14 /sbin/ipsecctl/parse.y
parentd1be9a78185aac7cdff3b2d348a9d051d04625c9 (diff)
trivial code simplification
tested and ok hshoexer, grunk
Diffstat (limited to 'sbin/ipsecctl/parse.y')
-rw-r--r--sbin/ipsecctl/parse.y8
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y
index a31bfb27747..6d302061409 100644
--- a/sbin/ipsecctl/parse.y
+++ b/sbin/ipsecctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.134 2008/04/11 00:05:51 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.135 2008/06/11 22:11:20 bluhm Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2336,12 +2336,10 @@ create_flow(u_int8_t dir, u_int8_t proto, struct ipsec_hosts *hosts,
goto errout;
}
- if (type == TYPE_DENY || type == TYPE_BYPASS) {
- r->flowtype = type;
+ r->flowtype = type;
+ if (type == TYPE_DENY || type == TYPE_BYPASS)
return (r);
- }
- r->flowtype = type;
r->local = peers->src;
if (peers->dst == NULL) {
/* Set peer to remote host. Must be a host address. */