diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm index 6cfc841..51ef3ee 100644 --- a/PVE/AccessControl.pm +++ b/PVE/AccessControl.pm @@ -327,7 +327,7 @@ sub verify_vnc_ticket { my $secret_data = "$username:$path"; my ($rsa_pub, $rsa_mtime) = get_pubkey(); - if (!$rsa_pub || (time() - $rsa_mtime > $authkey_lifetime)) { + if (!$rsa_pub || (time() - $rsa_mtime > $authkey_lifetime && $authkey_lifetime > 0)) { if ($noerr) { return undef; } else {