]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nss: handle leases with infinite expiry time
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Dec 2020 15:09:16 +0000 (16:09 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Jan 2021 14:33:31 +0000 (15:33 +0100)
commit7f93905e45f0ec3d28082adbcc061f6cc94aa489
tree20b4f32ae70a642bcdc5953a8443f4c9789b4729
parent5dd53684e18c9ed3d73ab889e4c24cf8b45fa46c
nss: handle leases with infinite expiry time

After v6.3.0-rc1~64 a lease can have infinite expiry time. This
means that the expiration time will appear as a value of zero.
Do the expiration check only if the expiration time is not zero.

Fixes: 97a0aa246799c97d0a9ca9ecd6b4fd932ae4756c
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tests/nssdata/virbr0.status
tests/nsstest.c
tools/nss/libvirt_nss_leases.c