diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-06-20 17:55:48 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-06-24 15:11:27 +0200 |
commit | bb91109af82531b45e421568b5aeb8f9e4b6731e (patch) | |
tree | 73bbc30cd591755d8f478708f6cf68fb46069034 /src | |
parent | d82aa931db9332e5777b04347cb52d4542ce8023 (diff) | |
download | strongswan-bb91109af82531b45e421568b5aeb8f9e4b6731e.tar.bz2 strongswan-bb91109af82531b45e421568b5aeb8f9e4b6731e.tar.xz |
pki: Also check for MAX_COMMANDS when building getopt_long arguments
Completes 87e53819a6 and 0a8c399a21.
Diffstat (limited to 'src')
-rw-r--r-- | src/pki/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki/command.c b/src/pki/command.c index 075a2279a..13e81404c 100644 --- a/src/pki/command.c +++ b/src/pki/command.c @@ -73,7 +73,7 @@ static void build_opts() memset(command_optstring, 0, sizeof(command_optstring)); if (active == help_idx) { - for (i = 0; cmds[i].cmd; i++) + for (i = 0; i < MAX_COMMANDS && cmds[i].cmd; i++) { command_opts[i].name = cmds[i].cmd; command_opts[i].val = cmds[i].op; |