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) ...@@ -273,7 +273,7 @@ mu_auth_register_module (struct mu_auth_module *mod)
273 for (i = 0; mu_auth_argp.children[i].argp; i++) 273 for (i = 0; mu_auth_argp.children[i].argp; i++)
274 ; 274 ;
275 tmp = realloc ((void*) mu_auth_argp.children, 275 tmp = realloc ((void*) mu_auth_argp.children,
276 (i+1) * sizeof(mu_auth_argp.children[0])); 276 (i + 2) * sizeof(mu_auth_argp.children[0]));
277 mu_auth_argp.children = tmp; 277 mu_auth_argp.children = tmp;
278 } 278 }
279 else 279 else
......