Fixed a small error in smb-psexec -- if it can't find a share to upload to, it would try to access a non-existent variable and die

This commit is contained in:
ron 2009-11-20 16:19:40 +00:00
parent 422b5855e5
commit b1739c929f

View file

@ -694,7 +694,7 @@ local function get_config(host)
-- any possible sanity checking should be done before this)
status, config.share, config.path, config.all_shares = find_share(host)
if(not(status)) then
return false, share
return false, config.share
end
-- Get information about the socket; it's a bit out of place here, but it should go before the mod loop