From 341ed34955270f7b360ab9453dee79d37b891857 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 29 Jul 2011 10:51:16 -0400 Subject: Fix incorrect NULL check in ipa_hbac_common.c https://fedorahosted.org/sssd/ticket/936 --- src/providers/ipa/ipa_hbac_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/ipa/ipa_hbac_common.c b/src/providers/ipa/ipa_hbac_common.c index 0ed08b839..4633f2f9e 100644 --- a/src/providers/ipa/ipa_hbac_common.c +++ b/src/providers/ipa/ipa_hbac_common.c @@ -539,7 +539,7 @@ hbac_ctx_to_eval_request(TALLOC_CTX *mem_ctx, if (tmp_ctx == NULL) return ENOMEM; eval_req = talloc_zero(tmp_ctx, struct hbac_eval_req); - if (tmp_ctx == NULL) { + if (eval_req == NULL) { ret = ENOMEM; goto done; } -- cgit