memset hdb_entry_ex before use

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16394 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-12-13 11:46:05 +00:00
parent b1854aabe6
commit 50fbd27e73
6 changed files with 9 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ kadm5_s_rename_principal(void *server_handle,
kadm5_ret_t ret;
hdb_entry_ex ent, ent2;
memset(&ent, 0, sizeof(ent));
ent.entry.principal = source;
if(krb5_principal_compare(context->context, source, target))
return KADM5_DUP; /* XXX is this right? */