summaryrefslogtreecommitdiff
path: root/sbin/iked/parse.y
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-09-05 19:14:33 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-09-05 19:14:33 +0000
commiteb3f3b53e98fd2d245054ab847d252eea3e147cb (patch)
treeeefb0ab5a03d760c229be81f46674f900bfc6c25 /sbin/iked/parse.y
parent436c037cba41ef23e6cdb55bc1df42a5bd32817b (diff)
Initialize flow_dir and flow_saproto so policy_test() can find the policy
on acquire.
Diffstat (limited to 'sbin/iked/parse.y')
-rw-r--r--sbin/iked/parse.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/iked/parse.y b/sbin/iked/parse.y
index 84af2cc2905..cd236e09e29 100644
--- a/sbin/iked/parse.y
+++ b/sbin/iked/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.109 2020/08/25 16:26:54 tobhe Exp $ */
+/* $OpenBSD: parse.y,v 1.110 2020/09/05 19:14:32 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -30,6 +30,7 @@
#include <sys/stat.h>
#include <net/if.h>
#include <netinet/in.h>
+#include <netinet/ip_ipsp.h>
#include <arpa/inet.h>
#include <ctype.h>
@@ -2998,6 +2999,8 @@ create_ike(char *name, int af, uint8_t ipproto,
flow->flow_prenat.addr_af = 0;
}
+ flow->flow_dir = IPSP_DIRECTION_OUT;
+ flow->flow_saproto = saproto;
flow->flow_ipproto = ipproto;
flow->flow_rdomain = rdomain;