summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortobhe <tobhe@openbsd.org>2020-08-05 21:04:54 +0000
committertobhe <tobhe@openbsd.org>2020-08-05 21:04:54 +0000
commit483a0179c14ffbebe68bcc578edfb440fd539e81 (patch)
tree5377f194f0fed70dc4d6515a886317808aac0487 /sys
parentMove TPMR section above TRUNK to sort alphabetically (diff)
downloadwireguard-openbsd-483a0179c14ffbebe68bcc578edfb440fd539e81.tar.xz
wireguard-openbsd-483a0179c14ffbebe68bcc578edfb440fd539e81.zip
Use PFKEYV2_LIFETIME_CURRENT instead of magic number.
ok patrick@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pfkeyv2.c4
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 ?