1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 04:09:01 +00:00

fix a wrong function name, noted by Matthew Boyle

This commit is contained in:
fyodor
2008-07-23 07:31:56 +00:00
parent d0dddaf216
commit 5f75bb7dd2

View File

@@ -3112,7 +3112,7 @@ socket = nmap.new_socket()
catch = function()
socket:close()
end
try = nmap.newtry(catch)
try = nmap.new_try(catch)
try(socket:connect(host.ip, port.number))
result = try(socket:receive_lines(1));
@@ -3364,7 +3364,7 @@ local catch = function()
client_service:close()
end
local try = nmap.newtry(catch)
local try = nmap.new_try(catch)
try(client_ident:connect(host.ip, 113))
try(client_service:connect(host.ip, port.number))