mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
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:
parent
422b5855e5
commit
b1739c929f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue