>Number: 614
>Category: mod_proxy
>Synopsis: proxy does not handle numeric addresses in URL
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache (Apache HTTP Project)
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Fri May 23 15:00:01 1997
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release:
>Environment:
ULTRIX sbcm60 4.3 1 RISC
>Description:
proxy does not handle numeric addresses in URL
>How-To-Repeat:
try to use apache as a proxy and GET any numeric address
>Fix:
diff proxy_util.c ../../../../apache_1.2b10/src/modules/proxy/proxy_util.c
697,698c697
< static struct hostent hpbuf;
< static u_long ipaddr;
---
> u_long ipaddr;
713,725c712,713
< if (hp == NULL) {
< /* vvv hollosi vvv */
< memchr(&hpbuf, 0, sizeof(hpbuf));
< hpbuf.h_name = 0; (char*)host;
< hpbuf.h_addrtype = AF_INET;
< hpbuf.h_length = sizeof(u_long);
< hpbuf.h_addr_list = malloc(2 * sizeof(char*));
< hpbuf.h_addr_list[0] = (char*)&ipaddr;
< hpbuf.h_addr_list[1] = 0;
< hp = &hpbuf;
< /* return "Address not found"; */
< /* ^^^ hollosi ^^^ */
< }
---
> if (hp == NULL)
> return "Address not found";
%0
>Audit-Trail:
>Unformatted: