From 38eb3479f81eb4f4740d4d4b3e002c360cd007be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 12 Dec 2017 11:02:48 +0100 Subject: [PATCH] add missing if --- PVE/APIClient/LWP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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