strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
911e315
)
Avoid overrunning array when registering pki command line options
author
Tobias Brunner
<tobias@strongswan.org>
Fri, 28 Sep 2012 16:22:54 +0000
(18:22 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Fri, 28 Sep 2012 16:22:54 +0000
(18:22 +0200)
src/pki/command.c
patch
|
blob
|
history
diff --git
a/src/pki/command.c
b/src/pki/command.c
index
07ba5bb
..
4332857
100644
(file)
--- 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)
{