Fix a bug that when getting/dumping the soft lifetime we reported

the hard lifetime instead.

MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2008-03-24 15:01:20 +00:00
parent fdcc0789fb
commit 44c92dbb34
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177554

View File

@ -3376,7 +3376,7 @@ key_setdumpsa(sav, type, satype, seq, pid)
case SADB_EXT_LIFETIME_SOFT:
if (!sav->lft_s)
continue;
m = key_setlifetime(sav->lft_h,
m = key_setlifetime(sav->lft_s,
SADB_EXT_LIFETIME_SOFT);
if (!m)