mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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: 97a0aa2467
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -173,7 +173,7 @@ mymain(void)
|
||||
} while (0)
|
||||
|
||||
# if !defined(LIBVIRT_NSS_GUEST)
|
||||
DO_TEST("fedora", AF_INET, "192.168.122.197", "192.168.122.198", "192.168.122.199");
|
||||
DO_TEST("fedora", AF_INET, "192.168.122.197", "192.168.122.198", "192.168.122.199", "192.168.122.3");
|
||||
DO_TEST("gentoo", AF_INET, "192.168.122.254");
|
||||
DO_TEST("gentoo", AF_INET6, "2001:1234:dead:beef::2");
|
||||
DO_TEST("gentoo", AF_UNSPEC, "192.168.122.254");
|
||||
|
||||
Reference in New Issue
Block a user