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:
2
nmap.cc
2
nmap.cc
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user