1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Check for connected socket before continuing

This commit is contained in:
dmiller
2024-04-25 17:12:27 +00:00
parent 0b89ae00c0
commit 1c751cf6d3

View File

@@ -114,6 +114,9 @@ action = function(host, port)
socket = do_connect(host, port, domain) socket = do_connect(host, port, domain)
end end
end end
if not socket then
return nil
end
socket:send("AUTH NTLM\r\n") socket:send("AUTH NTLM\r\n")
local status, response = socket:receive() local status, response = socket:receive()