This commit is contained in:
Nicolas Williams
2023-01-02 21:07:30 -06:00
parent be0d4036a9
commit ea39bc5a6b
2 changed files with 3 additions and 1 deletions

View File

@@ -1327,6 +1327,7 @@ _kdc_db_fetch_client(krb5_context context,
krb5_error_code ret; krb5_error_code ret;
hdb_entry *client = NULL; hdb_entry *client = NULL;
*clientdb = NULL;
*client_out = NULL; *client_out = NULL;
ret = _kdc_db_fetch(context, config, cp, HDB_F_GET_CLIENT | flags, ret = _kdc_db_fetch(context, config, cp, HDB_F_GET_CLIENT | flags,
@@ -1382,7 +1383,7 @@ tgs_build_reply(astgs_request_t priv,
char *user2user_name = NULL; char *user2user_name = NULL;
HDB *user2user_krbtgtdb; HDB *user2user_krbtgtdb;
hdb_entry *user2user_krbtgt = NULL; hdb_entry *user2user_krbtgt = NULL;
HDB *clientdb; HDB *clientdb = NULL;
HDB *serverdb = NULL; HDB *serverdb = NULL;
krb5_realm ref_realm = NULL; krb5_realm ref_realm = NULL;
EncTicketPart *tgt = &priv->ticket->ticket; EncTicketPart *tgt = &priv->ticket->ticket;

View File

@@ -139,6 +139,7 @@ _kdc_db_fetch(krb5_context context,
krb5_const_principal princ; krb5_const_principal princ;
*h = NULL; *h = NULL;
*db = NULL;
if (!name_type_ok(context, config, principal)) if (!name_type_ok(context, config, principal))
return HDB_ERR_NOENTRY; return HDB_ERR_NOENTRY;