From fbfc2fa045ee35ea3b9693ed2e28a2863b4bb7db Mon Sep 17 00:00:00 2001 From: batrick Date: Fri, 15 Aug 2008 23:45:57 +0000 Subject: [PATCH] Changed showSSHVersion to properly return one result (not through concatentation). --- scripts/showSSHVersion.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/showSSHVersion.nse b/scripts/showSSHVersion.nse index 0ea17ac80..edfd596f7 100644 --- a/scripts/showSSHVersion.nse +++ b/scripts/showSSHVersion.nse @@ -31,6 +31,6 @@ action = function(host, port) try(socket:send(result)) try(socket:close()) - return "" .. string.gsub(result, "\n", "") + return (string.gsub(result, "\n", "")) end