From 4fa142de14fc90ec77abd4b92e167aba8414ff49 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 10 Jan 2011 00:25:14 +0000 Subject: [PATCH] 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. --- nselib/comm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/comm.lua b/nselib/comm.lua index 8f08eb93a..64a121638 100644 --- a/nselib/comm.lua +++ b/nselib/comm.lua @@ -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()