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:
Sumit Bose 2013-02-22 13:30:30 +01:00 committed by Martin Kosek
parent caa218b6b8
commit 29ddcf3bcb

View File

@ -1231,7 +1231,7 @@ static krb5_error_code filter_logon_info(krb5_context context,
* */
if (info->info->info3.sidcount != 0) {
ipactx = ipadb_get_context(context);
if (!ipactx && !ipactx->mspac) {
if (!ipactx || !ipactx->mspac) {
return KRB5_KDB_DBNOTINITED;
}
count = info->info->info3.sidcount;