charon-cmd: Stop processing options if an argument is missing or an option not recognized
This commit is contained in:
@@ -282,6 +282,9 @@ static void handle_arguments(int argc, char *argv[])
|
||||
{
|
||||
continue;
|
||||
}
|
||||
/* fall-through */
|
||||
case '?':
|
||||
/* missing argument, unrecognized option */
|
||||
usage(stderr, NULL, argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user