summaryrefslogtreecommitdiffstats
path: root/src/providers/fail_over.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-04-09 15:07:41 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-04-26 09:54:59 -0400
commit6e52f3cd077a6d3df8093c38854d5bc835bb6378 (patch)
treedd5057929e346c5a61900e78f0effe004a0e47de /src/providers/fail_over.c
parentc7fc1078dad4b237256bfedca5121a6a55ac625d (diff)
downloadsssd-6e52f3cd077a6d3df8093c38854d5bc835bb6378.tar.gz
sssd-6e52f3cd077a6d3df8093c38854d5bc835bb6378.tar.xz
sssd-6e52f3cd077a6d3df8093c38854d5bc835bb6378.zip
Treat server names as case-insensitive in failover code
Diffstat (limited to 'src/providers/fail_over.c')
-rw-r--r--src/providers/fail_over.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c
index 54ad0329e..aff3ffd4e 100644
--- a/src/providers/fail_over.c
+++ b/src/providers/fail_over.c
@@ -302,7 +302,7 @@ get_server_common(TALLOC_CTX *mem_ctx, struct fo_ctx *ctx, const char *name,
struct server_common *common;
DLIST_FOR_EACH(common, ctx->server_common_list) {
- if (!strcmp(name, common->name)) {
+ if (!strcasecmp(name, common->name)) {
*_common = rc_reference(mem_ctx, struct server_common, common);
if (_common == NULL)
return ENOMEM;
@@ -355,7 +355,7 @@ fo_add_server(struct fo_service *service, const char *name, int port,
if (name == NULL && server->common == NULL) {
return EEXIST;
} else if (name != NULL && server->common != NULL) {
- if (!strcmp(name, server->common->name))
+ if (!strcasecmp(name, server->common->name))
return EEXIST;
}
}