[pve-devel] [PatchV2 storage] Handel connection check timeouts.

Wolfgang Link w.link at proxmox.com
Wed May 16 09:08:06 CEST 2018


---
 PVE/Storage/CIFSPlugin.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/Storage/CIFSPlugin.pm b/PVE/Storage/CIFSPlugin.pm
index 1670a5c..724fb1f 100644
--- a/PVE/Storage/CIFSPlugin.pm
+++ b/PVE/Storage/CIFSPlugin.pm
@@ -218,7 +218,8 @@ sub check_connection {
     };
 
     if (my $err = $@) {
-	die "$out_str\n" if ($out_str =~ m/NT_STATUS_ACCESS_DENIED/);
+	die "$out_str\n" if defined($out_str) &&
+	    ($out_str =~ m/NT_STATUS_ACCESS_DENIED/);
 	return 0;
     }
 
-- 
2.11.0





More information about the pve-devel mailing list