summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorho <ho@openbsd.org>2002-09-05 14:54:16 +0000
committerho <ho@openbsd.org>2002-09-05 14:54:16 +0000
commita6f7d4332b16a36a6e17780bd706ab9df9250dc4 (patch)
tree42d0914a7c2d3b05bb3937f79faffd33e9afb2e8
parentimport openssl-0.9.7-beta1 (diff)
downloadwireguard-openbsd-a6f7d4332b16a36a6e17780bd706ab9df9250dc4.tar.xz
wireguard-openbsd-a6f7d4332b16a36a6e17780bd706ab9df9250dc4.zip
Do not create SAs for transaction exchanges either. By niklas@
-rw-r--r--sbin/isakmpd/exchange.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/isakmpd/exchange.c b/sbin/isakmpd/exchange.c
index 553d7f62d4b..80b89f71731 100644
--- a/sbin/isakmpd/exchange.c
+++ b/sbin/isakmpd/exchange.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exchange.c,v 1.67 2002/06/10 18:08:58 ho Exp $ */
+/* $OpenBSD: exchange.c,v 1.68 2002/09/05 14:54:16 ho Exp $ */
/* $EOM: exchange.c,v 1.143 2000/12/04 00:02:25 angelos Exp $ */
/*
@@ -985,7 +985,8 @@ exchange_establish_p2 (struct sa *isakmp_sa, u_int8_t type, char *name,
* Do not create SA's for informational exchanges.
* XXX How to handle new group mode?
*/
- if (exchange->type != ISAKMP_EXCH_INFO)
+ if (exchange->type != ISAKMP_EXCH_INFO
+ && exchange->type != ISAKMP_EXCH_TRANSACTION)
{
/* XXX Number of SAs should come from the args structure. */
for (i = 0; i < 1; i++)