From 44af0057c1fd52f6252f82ca73a06acfcac6c5e3 Mon Sep 17 00:00:00 2001 From: Michal Zidek Date: Fri, 25 Jan 2013 15:49:29 +0100 Subject: Possible null derefence in ipa_subdomains.c. Found by coverity. https://fedorahosted.org/sssd/ticket/1790 --- src/providers/ipa/ipa_subdomains.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/providers/ipa/ipa_subdomains.c') 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); -- cgit