diff options
-rw-r--r-- | sbin/ipsecctl/parse.y | 8 |
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. */ |