diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-06-03 19:06:51 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-06-09 08:29:34 -0400 |
commit | 8c804f6c4c6d5b701b2d688e924b6c2c70057565 (patch) | |
tree | 435dbcd63dbca2a1e69bb0cd9e1c85fc6a4c4f27 /src | |
parent | c67ddf1e339c164a310e3e93ef8fe08a7ffd7c49 (diff) | |
download | sssd_unused-8c804f6c4c6d5b701b2d688e924b6c2c70057565.tar.gz sssd_unused-8c804f6c4c6d5b701b2d688e924b6c2c70057565.tar.xz sssd_unused-8c804f6c4c6d5b701b2d688e924b6c2c70057565.zip |
Fix Incorrect NULL check in get_server_common()
Fixes: #518
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/fail_over.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c index ada5b57f..4fb05c1f 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; } |