1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-09 15:06:35 +00:00

merge soc07 r4768 - Don't print an error message when no ports are specified with list or ping scan.

This commit is contained in:
fyodor
2007-08-11 03:19:43 +00:00
parent 58f46706e5
commit 90e464602a

View File

@@ -2031,7 +2031,7 @@ struct scan_lists *getpts(char *origexpr) {
range_type, // Defaults to TCP/UDP/Protos
&portwarning); // No, we haven't warned them about dup ports yet
if ( 0 == (ports->tcp_count + ports->udp_count + ports->prot_count))
if (range_type != 0 && 0 == (ports->tcp_count + ports->udp_count + ports->prot_count))
fatal("No ports specified -- If you really don't want to scan any ports use ping scan...");
if (ports->tcp_count) {