From: Fabian Grünbichler Date: Tue, 12 Dec 2017 10:02:48 +0000 (+0100) Subject: add missing if X-Git-Url: https://git.proxmox.com/?p=pve-apiclient.git;a=commitdiff_plain;h=38eb3479f81eb4f4740d4d4b3e002c360cd007be add missing if --- diff --git a/PVE/APIClient/LWP.pm b/PVE/APIClient/LWP.pm index 36e1b06..4584bc0 100755 --- a/PVE/APIClient/LWP.pm +++ b/PVE/APIClient/LWP.pm @@ -259,7 +259,7 @@ my $verify_cert_callback = sub { # check server certificate against cache of pinned FPs # get fingerprint of server certificate 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}; return $valid if defined($valid); # return cached result