ipa-kdb: Uninitialized scalar variable in ipadb_reinit_mspac()

There was a code path where ret was used instead of kerr to save a
return value.

Fixes https://fedorahosted.org/freeipa/ticket/3422
This commit is contained in:
Sumit Bose
2013-02-19 12:49:25 +01:00
committed by Martin Kosek
parent 5582c9ca63
commit db1a07b7f2

View File

@@ -1938,12 +1938,11 @@ krb5_error_code ipadb_reinit_mspac(struct ipadb_context *ipactx)
if (ipactx->mspac && ipactx->mspac->num_trusts == 0) {
/* Check if there is any trust configured. If not, just return
* and do not re-initialize the MS-PAC structure. */
ret = ipadb_mspac_check_trusted_domains(ipactx);
if (ret == KRB5_KDB_NOENTRY) {
ret = 0;
kerr = ipadb_mspac_check_trusted_domains(ipactx);
if (kerr == KRB5_KDB_NOENTRY) {
kerr = 0;
goto done;
} else if (ret != 0) {
ret = EIO;
} else if (kerr != 0) {
goto done;
}
}