1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-07 06:59:03 +00:00

Use the local read (which obeys the "lines" and "bytes" options) intead

of sd:receive in comm.opencon, which is used by comm.get_banner.
This commit is contained in:
david
2011-01-10 00:25:14 +00:00
parent 64ccea886b
commit 4fa142de14

View File

@@ -215,7 +215,7 @@ local function opencon(host, port, protocol, data, opts)
end
local response, early_resp;
if opts and opts.recv_before then status, early_resp = sd:receive() end
if opts and opts.recv_before then status, early_resp = read(sd, opts) end
if #data > 0 then
sd:send(data)
status, response = sd:receive()