Import change from KAME, rev. 1.362 kame/kame/sys/netkey/key.c

In case of "new SA", we must check the hard lifetime of the old SA
to find out if it is not permanent and we can delete it.

Submitted by:	sakane via gnn
MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2008-03-24 14:55:09 +00:00
parent 94dd320367
commit fdcc0789fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177553

View File

@ -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->addtime != 0) {
if (d->lft_h->addtime != 0) {
struct mbuf *m, *result;
u_int8_t satype;