diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-08-05 21:04:55 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-08-05 21:04:55 +0000 |
commit | b175af9dda93e6681e948bdd062684e8871642b2 (patch) | |
tree | 2fe10c2c016e80b517b404db83e066d13baf8f14 /sys/net | |
parent | 30ba5ecf51116da191ab457e32db52a0a6138fcc (diff) |
Use PFKEYV2_LIFETIME_CURRENT instead of magic number.
ok patrick@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pfkeyv2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfkeyv2.c b/sys/net/pfkeyv2.c index f5db49a054f..681099d51e9 100644 --- a/sys/net/pfkeyv2.c +++ b/sys/net/pfkeyv2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkeyv2.c,v 1.204 2020/07/21 07:54:43 tobhe Exp $ */ +/* $OpenBSD: pfkeyv2.c,v 1.205 2020/08/05 21:04:54 tobhe Exp $ */ /* * @(#)COPYRIGHT 1.1 (NRL) 17 January 1995 @@ -2378,7 +2378,7 @@ pfkeyv2_expire(struct tdb *tdb, u_int16_t type) export_sa(&p, tdb); headers[SADB_EXT_LIFETIME_CURRENT] = p; - export_lifetime(&p, tdb, 2); + export_lifetime(&p, tdb, PFKEYV2_LIFETIME_CURRENT); headers[type] = p; export_lifetime(&p, tdb, type == SADB_EXT_LIFETIME_SOFT ? |