forked from jengelh/strongswan
17 lines
571 B
Diff
17 lines
571 B
Diff
|
References: bsc#918474,https://wiki.strongswan.org/issues/881
|
||
|
Upstream: yes
|
||
|
|
||
|
Index: strongswan-5.1.3/src/pki/command.c
|
||
|
===================================================================
|
||
|
--- strongswan-5.1.3.orig/src/pki/command.c
|
||
|
+++ strongswan-5.1.3/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;
|