Bug found by coverity. https://fedorahosted.org/sssd/ticket/1790
Patch is attached. Thanks Michal
>From 82917f237013b96e630a8093728e869141f6c68f Mon Sep 17 00:00:00 2001 From: Michal Zidek <[email protected]> Date: Fri, 25 Jan 2013 15:49:29 +0100 Subject: [PATCH] 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(+) diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c index c9ab3aa..fe48ddf 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, "talloc_zero() failed.\n"); + return; + } ipa_subdomains_retrieve(ctx, be_req); -- 1.7.11.2
_______________________________________________ sssd-devel mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
