Commit c2dbb827 c2dbb82705a9044ac7d5ed8a908a583eb40700e4 by Sergey Poznyakoff

(mu_auth_register_module): Fixed memory overrun.

1 parent a4e393cc
......@@ -273,7 +273,7 @@ mu_auth_register_module (struct mu_auth_module *mod)
for (i = 0; mu_auth_argp.children[i].argp; i++)
;
tmp = realloc ((void*) mu_auth_argp.children,
(i+1) * sizeof(mu_auth_argp.children[0]));
(i + 2) * sizeof(mu_auth_argp.children[0]));
mu_auth_argp.children = tmp;
}
else
......