httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject cvs commit: apache-1.3/src/main util.c
Date Thu, 01 Feb 2001 10:06:40 GMT
fanf        01/02/01 02:06:39

  Modified:    src      CHANGES
               src/main util.c
  Log:
  Get the correct IP address if ServerName isn't set and we can't
  find a fully-qualified domain name at startup.
  PR:             7170
  Submitted by:   Danek Duvall <dduvall@eng.sun.com>
  
  Revision  Changes    Path
  1.1634    +4 -0      apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.1633
  retrieving revision 1.1634
  diff -u -u -r1.1633 -r1.1634
  --- CHANGES	2001/02/01 06:11:02	1.1633
  +++ CHANGES	2001/02/01 10:06:31	1.1634
  @@ -1,5 +1,9 @@
   Changes with Apache 1.3.18
   
  +  *) Get the correct IP address if ServerName isn't set and we can't
  +     find a fully-qualified domain name at startup.
  +     PR#7170 [Danek Duvall <dduvall@eng.sun.com>]
  +
     *) Fix pointer arithmetic in mod_rewrite map expansion.
        [Christopher A. Bongaarts <cab@tc.umn.edu>] PR#7157, 7158
   
  
  
  
  1.194     +1 -1      apache-1.3/src/main/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/util.c,v
  retrieving revision 1.193
  retrieving revision 1.194
  diff -u -u -r1.193 -r1.194
  --- util.c	2001/01/15 17:05:05	1.193
  +++ util.c	2001/02/01 10:06:37	1.194
  @@ -2048,7 +2048,7 @@
           if ((!(p = gethostbyname(str))) 
               || (!(server_hostname = find_fqdn(a, p)))) {
               /* Recovery - return the default servername by IP: */
  -            if (!str && p->h_addr_list[0]) {
  +            if (p->h_addr_list[0]) {
                   ap_snprintf(str, sizeof(str), "%pA", p->h_addr_list[0]);
   	        server_hostname = ap_pstrdup(a, str);
                   /* We will drop through to report the IP-named server */
  
  
  

Mime
View raw message