mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-09 00:00:53 -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;
|
continue;
|
||||||
}
|
}
|
||||||
|
/* fall-through */
|
||||||
|
case '?':
|
||||||
|
/* missing argument, unrecognized option */
|
||||||
usage(stderr, NULL, argv[0]);
|
usage(stderr, NULL, argv[0]);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user