Variable initialization in hdb_sqlite_store()

If the call to krb5_unparse_name() fails, we might try to free an
uninitialized pointer.
This commit is contained in:
Asanka Herath
2010-06-02 21:15:43 -04:00
parent e512f5e826
commit ab56333fd7

View File

@@ -482,7 +482,7 @@ hdb_sqlite_store(krb5_context context, HDB *db, unsigned flags,
int ret;
int i;
sqlite_int64 entry_id;
char *principal_string;
char *principal_string = NULL;
char *alias_string;
const HDB_Ext_Aliases *aliases;