summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/util.c b/source4/lib/util.c
index 173d755bec..2e0503b0d9 100644
--- a/source4/lib/util.c
+++ b/source4/lib/util.c
@@ -341,7 +341,7 @@ uint32_t interpret_addr(const char *str)
}
/* recognise 'localhost' as a special name. This fixes problems with
some hosts that don't have localhost in /etc/hosts */
- if (strcmp(str,"localhost") == 0) {
+ if (strcasecmp(str,"localhost") == 0) {
str = "127.0.0.1";
}