httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk.vanGulik" <>
Subject Re: WWW Form Bug Report: "osf/1 virtualhost support by ip broken" on OSF/1
Date Tue, 12 Nov 1996 09:31:13 GMT
Works for us (OSF1 V3.2 41 alpha)

Sad thing is that the normal compiler eats both; and I see no
difference. But it does not seem to break things either.

However the compiler gives a warning; saying that it will
treat it as a normal int, rather than its own normal 64 bit

However the gcc(2.7.1) compiler eats it fine as well; and gets it
wrong. So that might be a reason for change.


> Could someone with virtual hosts please test this change and commit it?
> Two people have reported the same fix, and it seems obvious that the
> existing code is silly, but I don't like committing what I can't test
> at all.  The only real question is whether other compilers will complain
> about casting a negative number to an unsigned long.
> ....Roy
> ================================================================
> >>Submitter:
> >>Operating system: OSF/1, version: 
> >>Version of Apache Used: 1.1.1
> >>Extra Modules used: 
> >>URL exhibiting problem: 
> >>
> >>Symptoms:
> >>--
> >>Access to virtual hosts by ip returns main server
> >>page, unless the Host header is given.
> >>The problem is in util.c, in the function
> >>get_virthost_addr, on line 1019:
> >>
> >>    if (my_addr != ((unsigned long) 0xffffffff))
> >>
> >>I changed 0xffffffff to -1, and it works.  

View raw message