authproc: don't allow authd to write too many parameters to parv array

This commit is contained in:
Simon Arlott 2016-10-22 22:42:22 +01:00
parent 3656fa83a9
commit 3608f31d39
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -281,7 +281,7 @@ parse_authd_reply(rb_helper * helper)
{
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]];
if(cmd->fn != NULL)
{