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

Make magic_port_set a bool.

This commit is contained in:
david
2012-08-28 13:07:19 +00:00
parent 676de05f7f
commit 4357a97403
3 changed files with 3 additions and 3 deletions

View File

@@ -1057,7 +1057,7 @@ void parse_options(int argc, char **argv) {
case 'f': o.fragscan += 8; break;
case 'g':
o.magic_port = atoi(optarg);
o.magic_port_set = 1;
o.magic_port_set = true;
if (o.magic_port == 0) error("WARNING: a source port of zero may not work on all systems.");
break;
case 'h': printusage(0); break;