(hdb_get_entry): memset ent before passing it into ->hdb_fetch().

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18234 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-05 07:52:27 +00:00
parent 10d5627720
commit 38b3c68c13

View File

@@ -201,6 +201,8 @@ hdb_get_entry(krb5_context context,
const char *dbname = d->dbname;
const char *mkey = d->mkey;
memset(&ent, 0, sizeof(ent));
if (dbname == NULL)
find_db (context, &dbname, &mkey, principal);