summaryrefslogtreecommitdiffstats
path: root/sys/netipsec/key.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-03-24 14:55:09 +0000
committerbz <bz@FreeBSD.org>2008-03-24 14:55:09 +0000
commit42fbad307be1017720e678ecda4d07a89a7f75ef (patch)
tree6bbb6a90a28e1c52a5c05560b74a9a676f1261e4 /sys/netipsec/key.c
parent8cb3d2c7c5a7d12ab8477798cbd191dfa841d09c (diff)
downloadFreeBSD-src-42fbad307be1017720e678ecda4d07a89a7f75ef.zip
FreeBSD-src-42fbad307be1017720e678ecda4d07a89a7f75ef.tar.gz
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
Diffstat (limited to 'sys/netipsec/key.c')
-rw-r--r--sys/netipsec/key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
index 1614e81..e37d7d9 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/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->addtime != 0) {
+ if (d->lft_h->addtime != 0) {
struct mbuf *m, *result;
u_int8_t satype;
OpenPOWER on IntegriCloud