summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-06-17 15:05:28 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-17 19:56:32 +0200
commite23f790d0e38a8dce04560e34c189208d146ddd8 (patch)
tree727784aad17fc7723d7c4f53fa583642e8f27200 /src
parentd9a000b54a23fd4a58481b864175b88a8a3f7949 (diff)
downloadsssd-e23f790d0e38a8dce04560e34c189208d146ddd8.tar.gz
sssd-e23f790d0e38a8dce04560e34c189208d146ddd8.tar.bz2
sssd-e23f790d0e38a8dce04560e34c189208d146ddd8.zip
Fix allocation check
Diffstat (limited to 'src')
-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 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;