From b1739c929f0907d5fb100ba83e5802953e0903a7 Mon Sep 17 00:00:00 2001 From: ron Date: Fri, 20 Nov 2009 16:19:40 +0000 Subject: [PATCH] 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 --- scripts/smb-psexec.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/smb-psexec.nse b/scripts/smb-psexec.nse index 8c3a8b6d8..cec1b805b 100644 --- a/scripts/smb-psexec.nse +++ b/scripts/smb-psexec.nse @@ -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