Skip to content

Commit

Permalink
Merge pull request robertdavidgraham#234 from konlinedk/patch-1
Browse files Browse the repository at this point in the history
Update main-conf.c
  • Loading branch information
robertdavidgraham authored Jun 25, 2016
2 parents beb7a4e + f2a1914 commit ea6e732
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main-conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,9 @@ masscan_command_line(struct Masscan *masscan, int argc, char *argv[])
if (argv[i][2])
arg = argv[i]+2;
else
arg = argv[++i];
// arg = argv[++i]; // Passes a NULL value that breaks rangelist_parse_ports in ranges.c
fprintf(stderr, "%.*s: empty parameter\n", argv[0], argv[1]);
break;
masscan_set_parameter(masscan, "ports", arg);
break;
case 'P':
Expand Down

0 comments on commit ea6e732

Please sign in to comment.