r9791: r11611@blu: tridge | 2005-08-30 21:48:22 +1000
[jra/samba/.git] / source / lib / util.c
index 173d755bec974c88992138bb4ce4cc79d97f43f1..2e0503b0d96ab2692843577042136ba53e9aaead 100644 (file)
@@ -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";
        }