From 8d95aa1b58139002ace4b4418d5391ee7bfc78cb Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 10 Jun 2013 21:29:25 +0200 Subject: Fix allocation check in the AD provider https://fedorahosted.org/sssd/ticket/1976 --- 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 09ba384be..bc811e81a 100644 --- a/src/providers/ad/ad_init.c +++ b/src/providers/ad/ad_init.c @@ -143,7 +143,7 @@ sssm_ad_id_init(struct be_ctx *bectx, ad_ctx->ldap_ctx = sdap_ctx->conn; ad_ctx->gc_ctx = sdap_id_ctx_conn_add(sdap_ctx, ad_options->service->gc); - if (sdap_ctx == NULL) { + if (ad_ctx->gc_ctx == NULL) { return ENOMEM; } -- cgit