From b26bf922bd34039faf818cced9222e74a01a3f43 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 12 Feb 2015 20:04:27 +0000 Subject: [PATCH] Fix boolean logic in 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 517a7f201..668925c76 100644 --- a/nselib/comm.lua +++ b/nselib/comm.lua @@ -241,7 +241,7 @@ end -- of the first receive (before sending data) function tryssl(host, port, data, opts) opts = opts or {} - if not data or opts.recv_before then + if not data and not opts.recv_before then stdnse.debug1( "Using comm.tryssl without either first data payload or opts.recv_before.\n\z Impossible to test the connection for the correct protocol!"