projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d16cfe
)
Fix CtdlHostAlias to correctly check if the given fqdn is one we are
author
Dave West
<davew@uncensored.citadel.org>
Thu, 17 Jul 2008 10:48:36 +0000
(10:48 +0000)
committer
Dave West
<davew@uncensored.citadel.org>
Thu, 17 Jul 2008 10:48:36 +0000
(10:48 +0000)
masquerading as or one we do Directory mapping for.
citadel/internet_addressing.c
patch
|
blob
|
history
diff --git
a/citadel/internet_addressing.c
b/citadel/internet_addressing.c
index 53924ba809785c049db3cbe91dd5a4e961da2dee..0ae938c7c4497ef651553f11f185a965c016eb6f 100644
(file)
--- 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);
}