httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-2.0/server util.c
Date Sun, 11 Feb 2001 00:51:38 GMT
rbb         01/02/10 16:51:38

  Modified:    .        CHANGES
               server   util.c
  Log:
  Fix a potential segfault on all platforms.  David Reid fixed this for
  BEOS, but this could actually happen on any platform, so we should
  be safe and protect ourselves.
  Submitted by:	Cliff Woolley <cliffwoolley@yahoo.com>
  Reviewed by:	Ryan Bloom
  
  Revision  Changes    Path
  1.85      +5 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.84
  retrieving revision 1.85
  diff -u -d -b -w -u -r1.84 -r1.85
  --- CHANGES	2001/02/10 03:38:47	1.84
  +++ CHANGES	2001/02/11 00:51:38	1.85
  @@ -1,4 +1,9 @@
   Changes with Apache 2.0b1
  +
  +  *) Fix a potential seg fault on all platforms.  David Reid fixed this
  +     on BEOS, but the problem could happen anywhere, so we don't want
  +     to #ifdef it. [Cliff Woolley <cliffwoolley@yahoo.com>]
  + 
     *) Add new LogFormat directive, %D, to log time it takes to serve a
        request in microseconds. [Bill Stoddard]
   
  
  
  
  1.101     +1 -5      httpd-2.0/server/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util.c,v
  retrieving revision 1.100
  retrieving revision 1.101
  diff -u -d -b -w -u -r1.100 -r1.101
  --- util.c	2001/02/10 13:05:28	1.100
  +++ util.c	2001/02/11 00:51:38	1.101
  @@ -1788,11 +1788,7 @@
           if ((!(p = gethostbyname(str))) 
               || (!(server_hostname = find_fqdn(a, p)))) {
               /* Recovery - return the default servername by IP: */
  -#ifndef BEOS
  -            if (p->h_addr_list[0]) {
  -#else
  -            if (p) {
  -#endif
  +            if (p && p->h_addr_list[0]) {
                   apr_snprintf(str, sizeof(str), "%pA", p->h_addr_list[0]);
   	        server_hostname = apr_pstrdup(a, str);
                   /* We will drop through to report the IP-named server */
  
  
  

Mime
View raw message