diff options
author | Michal Zidek <mzidek@redhat.com> | 2013-01-25 15:49:29 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-25 17:45:42 +0100 |
commit | 44af0057c1fd52f6252f82ca73a06acfcac6c5e3 (patch) | |
tree | 7f846a4abb34f4da055fe16598f710ce73e182cd | |
parent | 541ee4f36c58dac103dfb766231cf8f26db93676 (diff) | |
download | sssd-44af0057c1fd52f6252f82ca73a06acfcac6c5e3.tar.gz sssd-44af0057c1fd52f6252f82ca73a06acfcac6c5e3.tar.bz2 sssd-44af0057c1fd52f6252f82ca73a06acfcac6c5e3.zip |
Possible null derefence in ipa_subdomains.c.
Found by coverity.
https://fedorahosted.org/sssd/ticket/1790
-rw-r--r-- | src/providers/ipa/ipa_subdomains.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c index c9ab3aad..ef6195d1 100644 --- a/src/providers/ipa/ipa_subdomains.c +++ b/src/providers/ipa/ipa_subdomains.c @@ -930,6 +930,10 @@ static void ipa_subdom_online_cb(void *pvt) be_req = be_req_create(ctx, NULL, ctx->be_ctx, ipa_subdom_be_req_callback, NULL); + if (be_req == NULL) { + DEBUG(SSSDBG_CRIT_FAILURE, ("be_req_create() failed.\n")); + return; + } ipa_subdomains_retrieve(ctx, be_req); |