httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perry Harrington <pedw...@webcom.com>
Subject BUG: http_vhost.c:fix_hostname
Date Sat, 22 Jun 2002 20:56:40 GMT
There is a bug in fix_hostname.  The comment above function says that the hostname
is lowercased, but it's not.

the line which reads:

        *dst++ = *src++;

in context of:

                goto bad;
            else
                break;
        }
        *dst++ = *src++;
    }
    /* strip trailing gubbins */
    if (dst > host && dst[-1] == '.') {
        dst[-1] = '\0';
    } else {

should read:

        *dst++ = tolower(*src++);

Thanks,

--Perry

-- 
Perry Harrington                 Director of                    zelur xuniL  ()
perry at webcom dot com      System Architecture                Think Blue.  /\

Those who would give up essential liberty to purchase a little temporary safety
deserve neither liberty or safety. Nor, are they likely to end up with either.
                             -- Benjamin Franklin



Mime
View raw message