mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-27 09:21:59 -06:00
ipa-kdb: Dereference after null check in ipa_kdb_mspac.c
A wrong logic was used to check ipactx. Fixes https://fedorahosted.org/freeipa/ticket/3424
This commit is contained in:
parent
caa218b6b8
commit
29ddcf3bcb
@ -1231,7 +1231,7 @@ static krb5_error_code filter_logon_info(krb5_context context,
|
|||||||
* */
|
* */
|
||||||
if (info->info->info3.sidcount != 0) {
|
if (info->info->info3.sidcount != 0) {
|
||||||
ipactx = ipadb_get_context(context);
|
ipactx = ipadb_get_context(context);
|
||||||
if (!ipactx && !ipactx->mspac) {
|
if (!ipactx || !ipactx->mspac) {
|
||||||
return KRB5_KDB_DBNOTINITED;
|
return KRB5_KDB_DBNOTINITED;
|
||||||
}
|
}
|
||||||
count = info->info->info3.sidcount;
|
count = info->info->info3.sidcount;
|
||||||
|
Loading…
Reference in New Issue
Block a user