summaryrefslogtreecommitdiffstats
path: root/src/providers/ad/ad_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/ad/ad_init.c')
-rw-r--r--src/providers/ad/ad_init.c2
1 files changed, 1 insertions, 1 deletions
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;
}