kdc: Fix deref-before-NULL-check in _kdc_db_fetch()
This commit is contained in:
@@ -139,7 +139,8 @@ _kdc_db_fetch(krb5_context context,
|
|||||||
krb5_const_principal princ;
|
krb5_const_principal princ;
|
||||||
|
|
||||||
*h = NULL;
|
*h = NULL;
|
||||||
*db = NULL;
|
if (db)
|
||||||
|
*db = NULL;
|
||||||
|
|
||||||
if (!name_type_ok(context, config, principal))
|
if (!name_type_ok(context, config, principal))
|
||||||
return HDB_ERR_NOENTRY;
|
return HDB_ERR_NOENTRY;
|
||||||
|
Reference in New Issue
Block a user