From bceee8dd6006261fc0d46c11ce211cf596682045 Mon Sep 17 00:00:00 2001 From: Dave West Date: Thu, 17 Jul 2008 10:48:36 +0000 Subject: [PATCH] Fix CtdlHostAlias to correctly check if the given fqdn is one we are masquerading as or one we do Directory mapping for. --- citadel/internet_addressing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/citadel/internet_addressing.c b/citadel/internet_addressing.c index 53924ba80..0ae938c7c 100644 --- a/citadel/internet_addressing.c +++ b/citadel/internet_addressing.c @@ -326,11 +326,11 @@ int CtdlHostAlias(char *fqdn) { return(hostalias_localhost); if ( (!strcasecmp(type, "directory")) - && (!strcasecmp(&fqdn[strlen(fqdn)-strlen(host)], host))) + && (!strcasecmp(fqdn, host))) return(hostalias_directory); if ( (!strcasecmp(type, "masqdomain")) - && (!strcasecmp(&fqdn[strlen(fqdn)-strlen(host)], host))) + && (!strcasecmp(fqdn, host))) return(hostalias_masq); } -- 2.39.2