summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-06-03 19:06:51 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-06-09 08:29:34 -0400
commit8c804f6c4c6d5b701b2d688e924b6c2c70057565 (patch)
tree435dbcd63dbca2a1e69bb0cd9e1c85fc6a4c4f27
parentc67ddf1e339c164a310e3e93ef8fe08a7ffd7c49 (diff)
downloadsssd-8c804f6c4c6d5b701b2d688e924b6c2c70057565.tar.gz
sssd-8c804f6c4c6d5b701b2d688e924b6c2c70057565.tar.xz
sssd-8c804f6c4c6d5b701b2d688e924b6c2c70057565.zip
Fix Incorrect NULL check in get_server_common()
Fixes: #518
-rw-r--r--src/providers/fail_over.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c
index ada5b57f3..4fb05c1f6 100644
--- a/src/providers/fail_over.c
+++ b/src/providers/fail_over.c
@@ -444,7 +444,7 @@ get_server_common(TALLOC_CTX *mem_ctx, struct fo_ctx *ctx, const char *name,
DLIST_FOR_EACH(common, ctx->server_common_list) {
if (!strcasecmp(name, common->name)) {
*_common = rc_reference(mem_ctx, struct server_common, common);
- if (_common == NULL)
+ if (*_common == NULL)
return ENOMEM;
return EOK;
}