Permalink
Browse files

It must compare with the hard lifetime.

NetBSD sys/netkey/key.c does not relate to this fix.
FreeBSD/NetBSD sys/netipsec/key.c must be modified.
  • Loading branch information...
1 parent 7a32ec8 commit 0bf3492a13dab5348bc09f89ea06b928342d2ddc sakane committed Jul 11, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 kame/sys/netkey/key.c
@@ -950,7 +950,7 @@ key_do_allocsa_policy(struct secashead *sah, u_int state)
* suitable candidate and the lifetime of the SA is not
* permanent.
*/
- if (d->lft_c->sadb_lifetime_addtime != 0) {
+ if (d->lft_h->sadb_lifetime_addtime != 0) {
struct mbuf *m, *result = NULL;
key_sa_chgstate(d, SADB_SASTATE_DEAD);

0 comments on commit 0bf3492

Please sign in to comment.