(_kdc_db_fetch): use calloc to allocate the entry, from Andrew Bartlet.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16420 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-01-01 23:17:16 +00:00
parent acd0a07bf9
commit 6d3861991a

View File

@@ -47,7 +47,7 @@ _kdc_db_fetch(krb5_context context,
krb5_error_code ret = HDB_ERR_NOENTRY;
int i;
ent = malloc (sizeof (*ent));
ent = calloc (1, sizeof (*ent));
if (ent == NULL)
return ENOMEM;
ent->entry.principal = principal;