1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Avoid warning about --defeat-rst-ratelimit when TCP scan was not even done. Fixes #727

This commit is contained in:
dmiller
2017-03-05 04:25:39 +00:00
parent 36301d6ddd
commit b4924eb362

View File

@@ -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");
}
}