scan_cifs: fix scanning server with no SMB1 fallback

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2020-07-01 15:33:14 +02:00
parent 8594155a66
commit d37729b95b

View File

@ -1219,7 +1219,9 @@ sub scan_cifs {
}
},
);
raise($err) if $err;
# only die if we got no share, else it's just some followup check error
# (like workgroup querying)
raise($err) if $err && !%$res;
return $res;
}