>From bc073dd65aaf5623797c45db3693c07b7a8dab1d Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 17 Jun 2013 15:05:28 +0200 Subject: [PATCH] Fix allocation check --- src/providers/ad/ad_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c index bc811e81ac496723f150c3441382b8f680a07ff1..5c6b6f5c84afc3597ff2a65e91e20d2fb7e69f9a 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; -- 1.8.2.1