mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix possible NULL dereference in ipa-kdb
https://fedorahosted.org/freeipa/ticket/4651 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
59af17d5e4
commit
04a6f712e4
@ -1888,9 +1888,11 @@ void get_authz_data_types(krb5_context context, krb5_db_entry *entry,
|
||||
}
|
||||
|
||||
ipactx = ipadb_get_context(context);
|
||||
gcfg = ipadb_get_global_config(ipactx);
|
||||
if (gcfg != NULL)
|
||||
tmp = gcfg->authz_data;
|
||||
if (ipactx != NULL) {
|
||||
gcfg = ipadb_get_global_config(ipactx);
|
||||
if (gcfg != NULL)
|
||||
tmp = gcfg->authz_data;
|
||||
}
|
||||
if (ipactx == NULL || tmp == NULL) {
|
||||
krb5_klog_syslog(LOG_ERR, "No default authorization data types " \
|
||||
"available, no authorization data will " \
|
||||
|
Loading…
Reference in New Issue
Block a user