From: mikeb Date: Mon, 20 Apr 2015 17:22:18 +0000 (+0000) Subject: Log if we refuse to continue the exchange when another one that corresponds X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7788aeee673e4071598232143d39af03c33f3455;p=openbsd Log if we refuse to continue the exchange when another one that corresponds to the same policy is already active. OK markus, hshoexer --- diff --git a/sbin/isakmpd/exchange.c b/sbin/isakmpd/exchange.c index 0179af4e030..4a18fd62b3c 100644 --- a/sbin/isakmpd/exchange.c +++ b/sbin/isakmpd/exchange.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exchange.c,v 1.135 2014/01/23 01:04:28 deraadt Exp $ */ +/* $OpenBSD: exchange.c,v 1.136 2015/04/20 17:22:18 mikeb Exp $ */ /* $EOM: exchange.c,v 1.143 2000/12/04 00:02:25 angelos Exp $ */ /* @@ -978,8 +978,13 @@ exchange_setup_p1(struct message *msg, u_int32_t doi) * continue responding if our phase 1 exchange is * still waiting for step 1 (i.e still half-open). */ - if (exchange_lookup_active(name, 1)) + exchange = exchange_lookup_active(name, 1); + if (exchange) { + LOG_DBG((LOG_EXCHANGE, 40, + "exchange_establish: %s exchange already " + "exists as %p", name, exchange)); return 0; + } } else { name = conf_get_str("Phase 1", "Default"); if (!name) {