summaryrefslogtreecommitdiffstats
path: root/src/lib/kadm5/srv/pwqual.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/kadm5/srv/pwqual.c')
-rw-r--r--src/lib/kadm5/srv/pwqual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/kadm5/srv/pwqual.c b/src/lib/kadm5/srv/pwqual.c
index 8c53391ec..666852f1d 100644
--- a/src/lib/kadm5/srv/pwqual.c
+++ b/src/lib/kadm5/srv/pwqual.c
@@ -55,7 +55,7 @@ k5_pwqual_load(krb5_context context, const char *dict_file,
/* Allocate a large enough list of handles. */
for (count = 0; modules[count] != NULL; count++);
- list = k5alloc((count + 1) * sizeof(*list), &ret);
+ list = k5calloc(count + 1, sizeof(*list), &ret);
if (list == NULL)
goto cleanup;