summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}