summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-12-02 02:09:27 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-12-02 02:09:27 +0000
commit92d508040824f7b8a57aaa72cd86d337b45f7c16 (patch)
treefa2d0eb5e75914c1805a238e9925fcb58cd7e23f
parent040b6288f1dcd05751855706b2345fb69f121e6f (diff)
Add comment.
-rw-r--r--sbin/isakmpd/exchange.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/isakmpd/exchange.c b/sbin/isakmpd/exchange.c
index faedb0b4176..672691470bb 100644
--- a/sbin/isakmpd/exchange.c
+++ b/sbin/isakmpd/exchange.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exchange.c,v 1.35 2000/12/02 02:08:17 angelos Exp $ */
+/* $OpenBSD: exchange.c,v 1.36 2000/12/02 02:09:26 angelos Exp $ */
/* $EOM: exchange.c,v 1.134 2000/10/16 18:16:58 provos Exp $ */
/*
@@ -1423,8 +1423,10 @@ exchange_finalize (struct message *msg)
exchange->id_r_len);
TAILQ_REMOVE (&exchange->sa_list, sa, next);
+
+ /* Only release the SA if it is time-expired */
if (sa->refcnt > 1)
- sa_release (sa);
+ sa_release (sa);
}
/* If we have nothing to retransmit we can safely remove ourselves. */