diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-12-02 02:09:27 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-12-02 02:09:27 +0000 |
commit | 92d508040824f7b8a57aaa72cd86d337b45f7c16 (patch) | |
tree | fa2d0eb5e75914c1805a238e9925fcb58cd7e23f | |
parent | 040b6288f1dcd05751855706b2345fb69f121e6f (diff) |
Add comment.
-rw-r--r-- | sbin/isakmpd/exchange.c | 6 |
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. */ |