You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1997/03/06 09:18:43 UTC

[PATCH] deal with long hostnames -- Re: [BUG]: "httpd server exits if no fqdn name found and ServerName not hardwired" on Solaris 2.x (fwd)

After examining the man pages and header files under bsdi, linux, irix,
and solaris I decided to use MAXHOSTNAMELEN.  The included patch also
checks the return value of gethostname(). 

Mike I'm guessing the UMR is coming because whatever OS you're doing this
on is truncating the result and the buffer isn't \0 terminated.  This
patch should deal with it. 

Dean

On Tue, 4 Mar 1997, Rob Hartill wrote:

> 
> 
> ---------- Forwarded message ----------
> Date: Tue, 04 Mar 1997 11:12:18 -0800
> From: "Michael R. MacFaden" <mr...@cisco.com>
> To: Rob Hartill <ro...@imdb.com>
> Cc: stronghold-support@c2.net
> Subject: Re: [BUG]: "httpd server exits if no fqdn name found and  ServerName not hardwired" on Solaris 2.x
> 
> The problem still exists on 1.1.3 and 1.2b7 from the apache.org ftp server.
> 
> There may be more places in the code where
> this bug will cause a purify UMR type error. I'm fixing my version,
> just wanted to call this to your attention...
> 
> Regards,
> Mike
> 
> At 03:30 PM 3/4/97 +0000, Rob Hartill wrote:
> >On Mon, 3 Mar 1997 mrm@cisco.com wrote:
> >
> >> Submitter: mrm@cisco.com
> >> Operating system: all
> >> Version of Apache Used: 1.1
> >> Extra Modules used: 
> >> URL exhibiting problem: 
> >> 
> >> Symptoms:
> >> --
> >> Problem 1: util.c, get_local_host() has a 
> >> majic value that is too small.
> >> 
> >> get_local_host(pool *a)
> >> {
> >>   char str[128];
> >>   . ...
> >> }
> >> 
> >> RFC 1035 section 2.3.4 says FQDN max size is:256
> >> Suggest you create a manifest constant for
> >> this type of object.
> 
> 
>