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:
parent
94dd320367
commit
fdcc0789fb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177553
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user