DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22586>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22586 mod_proxy connect to localhost (127.0.0.1) by request of any IP address site. Summary: mod_proxy connect to localhost (127.0.0.1) by request of any IP address site. Product: Apache httpd-1.3 Version: 1.3.28 Platform: Sun OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: mod_proxy AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] on 64bit binary (compile with cc -xarch=v9) mod_proxy connect to localhost (127.0.0.1) by request of any IP address site. (e.g. http://10.11.12.13/) # 32bit binary does not have problem. ## access log 127.0.0.1 - - [20/Aug/2003:15:01:42 +0900] "GET / HTTP/1.1" 200 118 192.168.91.93 - - [20/Aug/2003:15:13:09 +0900] "GET http://10.11.12.13/ HTTP/1.0" 200 118 type of ipaddr (member of struct per_thread_data) is u_long. size of u_long is 64bit on sparcv9 (LP64). Because of that, gethostbyaddr() returns NULL. # at proxy_util.c: 998 (ap_proxy_host2addr()) and server.sin_addr becomes 0. # at proxy_http.c: 276 (ap_proxy_http_handler()) fix it. --- src/modules/proxy/mod_proxy.h.orig Tue Feb 4 02:13:26 2003 +++ src/modules/proxy/mod_proxy.h Wed Aug 20 20:42:43 2003 @@ -256,7 +256,7 @@ struct per_thread_data { struct hostent hpbuf; - u_long ipaddr; + in_addr_t ipaddr; char *charpbuf[2]; }; /* Function prototypes */ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
