summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/ipsec.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-02-27 09:59:37 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-02-27 09:59:37 +0000
commitaf5ab8cfef5ec2ceee9f78df99e944f2317d3b66 (patch)
treef0560a25eb70eb896fd5fbf179ab377593abc237 /sbin/isakmpd/ipsec.c
parent2ea397a64353c4cd4c620c5b52ae4fe4796e3e1d (diff)
ipsec.c: Merge with EOM 1.83
Only accept IPsec SAs when searching for such sa.h: Merge with EOM 1.41 Stayalive connections as a default for now, init pf_encap_socket pf_encap.c: Merge with EOM 1.45 Stayalive connections as a default for now, init pf_encap_socket
Diffstat (limited to 'sbin/isakmpd/ipsec.c')
-rw-r--r--sbin/isakmpd/ipsec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/isakmpd/ipsec.c b/sbin/isakmpd/ipsec.c
index 7c002b1175b..6df6b3b6ce6 100644
--- a/sbin/isakmpd/ipsec.c
+++ b/sbin/isakmpd/ipsec.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: ipsec.c,v 1.5 1999/02/26 03:43:41 niklas Exp $ */
-/* $EOM: ipsec.c,v 1.82 1999/02/25 13:35:41 niklas Exp $ */
+/* $OpenBSD: ipsec.c,v 1.6 1999/02/27 09:59:36 niklas Exp $ */
+/* $EOM: ipsec.c,v 1.83 1999/02/26 14:32:18 niklas Exp $ */
/*
* Copyright (c) 1998 Niklas Hallqvist. All rights reserved.
@@ -1345,6 +1345,9 @@ ipsec_sa_check (struct sa *sa, void *v_arg)
int dstlen, srclen;
int incoming;
+ if (sa->phase != 2)
+ return 0;
+
sa->transport->vtbl->get_dst (sa->transport, &dst, &dstlen);
if (((struct sockaddr_in *)dst)->sin_addr.s_addr == arg->dst)
incoming = 0;