diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-28 18:22:54 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-28 18:22:54 +0200 |
commit | 8b0dce08f2e0f3097915e4aedc597497fa5a211d (patch) | |
tree | ce4ab191b4c44eeb2c8bfe01e365c3fa51121854 /src | |
parent | 911e3156a021b1e5ceb942e0f0f493b2f3228bd6 (diff) | |
download | strongswan-8b0dce08f2e0f3097915e4aedc597497fa5a211d.tar.bz2 strongswan-8b0dce08f2e0f3097915e4aedc597497fa5a211d.tar.xz |
Avoid overrunning array when registering pki command line options
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 07ba5bb1d..43328575c 100644 --- a/src/pki/command.c +++ b/src/pki/command.c @@ -144,7 +144,7 @@ void command_register(command_t command) /* append default options, but not to --help */ if (!active) { - for (i = 0; i < countof(cmds[registered].options); i++) + for (i = 0; i < countof(cmds[registered].options) - 1; i++) { if (cmds[registered].options[i].name) { |