mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 13:09:02 +00:00
Fix boolean logic in comm.get_banner
This commit is contained in:
@@ -241,7 +241,7 @@ end
|
|||||||
-- of the first receive (before sending data)
|
-- of the first receive (before sending data)
|
||||||
function tryssl(host, port, data, opts)
|
function tryssl(host, port, data, opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
if not data or opts.recv_before then
|
if not data and not opts.recv_before then
|
||||||
stdnse.debug1(
|
stdnse.debug1(
|
||||||
"Using comm.tryssl without either first data payload or opts.recv_before.\n\z
|
"Using comm.tryssl without either first data payload or opts.recv_before.\n\z
|
||||||
Impossible to test the connection for the correct protocol!"
|
Impossible to test the connection for the correct protocol!"
|
||||||
|
|||||||
Reference in New Issue
Block a user