diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-10 21:29:25 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-11 12:05:29 +0200 |
commit | 8d95aa1b58139002ace4b4418d5391ee7bfc78cb (patch) | |
tree | 35007cfafa689dca59edc90342239e371087ad79 | |
parent | 14452cd066b51e32ca0ebad6c45ae909a1debe57 (diff) | |
download | sssd-8d95aa1b58139002ace4b4418d5391ee7bfc78cb.tar.gz sssd-8d95aa1b58139002ace4b4418d5391ee7bfc78cb.tar.bz2 sssd-8d95aa1b58139002ace4b4418d5391ee7bfc78cb.zip |
Fix allocation check in the AD provider
https://fedorahosted.org/sssd/ticket/1976
-rw-r--r-- | src/providers/ad/ad_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c index 09ba384b..bc811e81 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; } |