You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Cliff Skolnick <cl...@organic.com> on 1996/06/13 04:41:21 UTC

WWW Form Bug Report: "mod_proxy misbehavior" on Solaris 2.x (fwd)

Interesting note about DNS behavio (paragraph 2)

--
Cliff Skolnick                                      cliff@organic.com

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." -- Benjamin Franklin, 1759

---------- Forwarded message ----------
Date: Wed Jun 12 19:32:11 1996
From: peb@cs.bsu.edu
To: cliff@organic.com
Subject: WWW Form Bug Report: "mod_proxy misbehavior" on Solaris 2.x

Submitter: peb@cs.bsu.edu
Operating system: Solaris 2.x, version: 2.5
Version of Apache Used: 1.1b3
Extra Modules used: mod_proxy
URL exhibiting problem: 

Symptoms:
--
mod_proxy host2addr() used inet_xxxx(host,addr) function
I had never seen and neither had my linker.
I replaced it with addr->s_addr = inet_addr(host)
and now it compiles and links for me.

Also, the logic in host2addr() looks like it
will not believe it has a DNS name if it sees
a digit anywhere in the string, but I could be
confused.  I always write code that assumes
it has a DNS name and falls back to the dotted
decimal interpretation only if the gethostbyname()
fails.  My approach may waste a lot of time
on making a wrong first guess, but will seldom
be wrong in a proxied URL.
--

Backtrace:
--

--