mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
charon-cmd: Stop processing options if an argument is missing or an option not recognized
This commit is contained in:
parent
410abbd35f
commit
efb4cb0bf9
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user