From e23f790d0e38a8dce04560e34c189208d146ddd8 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 17 Jun 2013 15:05:28 +0200 Subject: Fix allocation check --- src/providers/ad/ad_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/providers/ad') diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c index bc811e81..5c6b6f5c 100644 --- a/src/providers/ad/ad_init.c +++ b/src/providers/ad/ad_init.c @@ -129,7 +129,7 @@ sssm_ad_id_init(struct be_ctx *bectx, } ad_ctx = talloc_zero(ad_options, struct ad_id_ctx); - if (!ad_options) { + if (ad_ctx == NULL) { return ENOMEM; } ad_ctx->ad_options = ad_options; -- cgit