(mu_auth_register_module): Fixed memory overrun.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment