(_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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user