authproc: don't allow authd to write too many parameters to parv array
This commit is contained in:
parent
3656fa83a9
commit
3608f31d39
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ parse_authd_reply(rb_helper * helper)
|
||||||
{
|
{
|
||||||
struct authd_cb *cmd;
|
struct authd_cb *cmd;
|
||||||
|
|
||||||
parc = rb_string_to_array(buf, parv, MAXPARA+1);
|
parc = rb_string_to_array(buf, parv, MAXPARA);
|
||||||
cmd = &authd_cmd_tab[(unsigned char)*parv[0]];
|
cmd = &authd_cmd_tab[(unsigned char)*parv[0]];
|
||||||
if(cmd->fn != NULL)
|
if(cmd->fn != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue