cifs: fix uninitialized warning in check_connection

otherwise this spams the log when check_connection runs into a timeout.
This commit is contained in:
Wolfgang Link
2018-05-16 09:08:06 +02:00
committed by Fabian Grünbichler
parent 20cc2c38a4
commit 840e3797a5

View File

@ -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;
}