mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
58f46706e5
commit
90e464602a
1 changed files with 1 additions and 1 deletions
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue