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:
87e5381
)
pki: When dispatching commands, don't look beyond non-null-terminated array
author
Martin Willi
<martin@revosec.ch>
Wed, 19 Mar 2014 08:34:41 +0000
(09:34 +0100)
committer
Martin Willi
<martin@revosec.ch>
Wed, 19 Mar 2014 08:37:46 +0000
(09:37 +0100)
src/pki/command.c
patch
|
blob
|
history
diff --git
a/src/pki/command.c
b/src/pki/command.c
index
c2e0a5d
..
075a227
100644
(file)
--- a/
src/pki/command.c
+++ b/
src/pki/command.c
@@
-263,7
+263,7
@@
int command_dispatch(int c, char *v[])
build_opts();
op = getopt_long(c, v, command_optstring, command_opts, NULL);
build_opts();
op = getopt_long(c, v, command_optstring, command_opts, NULL);
- for (i = 0; cmds[i].cmd; i++)
+ for (i = 0;
i < MAX_COMMANDS &&
cmds[i].cmd; i++)
{
if (cmds[i].op == op)
{
{
if (cmds[i].op == op)
{