summaryrefslogtreecommitdiffstats
path: root/src/lib/kadm5/srv/pwqual.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-07-11 20:39:51 -0400
committerGreg Hudson <ghudson@mit.edu>2013-07-11 20:39:51 -0400
commit443ce5fef316e3dc324fe84557a06b069dbe33f9 (patch)
tree1aa5e33e71690fdbd4d3f7dc36ea3de8b82869df /src/lib/kadm5/srv/pwqual.c
parent90f9f6f6708baff4de2162c5eb754bb4bc557845 (diff)
downloadkrb5-443ce5fef316e3dc324fe84557a06b069dbe33f9.tar.gz
krb5-443ce5fef316e3dc324fe84557a06b069dbe33f9.tar.xz
krb5-443ce5fef316e3dc324fe84557a06b069dbe33f9.zip
Use k5calloc instead of k5alloc where appropriate
Wherever we use k5alloc with a multiplication in the size parameter,, use the new k5calloc helper function instead.
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;