Fix theoretical leak discovered by coverity

This was introduced when we started checking the return from
ipadb_get_context() to silence another coverity report.
That condition can never be true in this function but whatever ... let's
silence Coverity once again :)
This commit is contained in:
Simo Sorce
2012-04-17 15:35:59 -04:00
parent 72efa64c81
commit adf16a9b1c

View File

@@ -374,6 +374,7 @@ static krb5_error_code ipadb_parse_ldap_entry(krb5_context kcontext,
* krb5_db_entry in kdb.h */
ipactx = ipadb_get_context(kcontext);
if (!ipactx) {
free(entry);
return KRB5_KDB_DBNOTINITED;
}
lcontext = ipactx->lcontext;