From b4924eb362c1e0644a77c139ce3fd855324a7277 Mon Sep 17 00:00:00 2001 From: dmiller Date: Sun, 5 Mar 2017 04:25:39 +0000 Subject: [PATCH] Avoid warning about --defeat-rst-ratelimit when TCP scan was not even done. Fixes #727 --- output.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.cc b/output.cc index b53995fb8..fe5bbba4e 100644 --- a/output.cc +++ b/output.cc @@ -664,7 +664,7 @@ void printportoutput(Target *currenths, PortList *plist) { if (prevstate != PORT_UNKNOWN) { log_write(LOG_PLAIN, "\n"); - if (o.defeat_rst_ratelimit) { + if (o.defeat_rst_ratelimit && o.TCPScan()) { log_write(LOG_PLAIN, "Some closed ports may be reported as filtered due to --defeat-rst-ratelimit\n"); } }