mirror of
git://git.proxmox.com/git/pve-apiclient.git
synced 2024-12-22 17:34:22 +03:00
add missing if
This commit is contained in:
parent
1d40f3c38c
commit
38eb3479f8
@ -259,7 +259,7 @@ my $verify_cert_callback = sub {
|
|||||||
# check server certificate against cache of pinned FPs
|
# check server certificate against cache of pinned FPs
|
||||||
# get fingerprint of server certificate
|
# get fingerprint of server certificate
|
||||||
my $fp = Net::SSLeay::X509_get_fingerprint($cert, 'sha256');
|
my $fp = Net::SSLeay::X509_get_fingerprint($cert, 'sha256');
|
||||||
return 0 !defined($fp) || $fp eq ''; # error
|
return 0 if !defined($fp) || $fp eq ''; # error
|
||||||
|
|
||||||
my $valid = $self->{cached_fingerprints}->{$fp};
|
my $valid = $self->{cached_fingerprints}->{$fp};
|
||||||
return $valid if defined($valid); # return cached result
|
return $valid if defined($valid); # return cached result
|
||||||
|
Loading…
Reference in New Issue
Block a user