apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/build apr_network.m4
Date Sun, 24 Mar 2002 16:01:33 GMT
trawick     02/03/24 08:01:33

  Modified:    .        CHANGES
               build    apr_network.m4
  Log:
  Make sure gethostbyname() can handle 255.255.255.255.  Otherwise,
  we won't trust it to deal with numeric address strings properly
  and will use our own logic in apr_sockaddr_info_get().
  
  This fixes an assertion failure at Apache startup when using vhosts
  on HP-UX.
  
  Revision  Changes    Path
  1.246     +7 -0      apr/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apr/CHANGES,v
  retrieving revision 1.245
  retrieving revision 1.246
  diff -u -r1.245 -r1.246
  --- CHANGES	20 Mar 2002 21:30:08 -0000	1.245
  +++ CHANGES	24 Mar 2002 16:01:33 -0000	1.246
  @@ -1,4 +1,11 @@
   Changes with APR b1
  +
  +  *) Make sure gethostbyname() can handle 255.255.255.255 if we
  +     are to trust it to handle numeric address strings in
  +     apr_sockaddr_info_get().  This fixes a problem on HP-UX
  +     which led to an assertion failure at Apache startup when
  +     using vhosts.  [Jeff Trawick]
  +
     *) Don't mask SIGUSR2 [Jin Hong <jinh@cnet.com>]  
   
     *) Load libraries if they not MH_BUNDLE, but if they are not, it 
  
  
  
  1.15      +4 -0      apr/build/apr_network.m4
  
  Index: apr_network.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_network.m4,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- apr_network.m4	14 Mar 2002 19:28:15 -0000	1.14
  +++ apr_network.m4	24 Mar 2002 16:01:33 -0000	1.15
  @@ -197,6 +197,10 @@
       if (he == NULL) {
           exit(1);
       }
  +    he = gethostbyname("255.255.255.255");
  +    if (he == NULL) {
  +        exit(1);
  +    }
       else {
           exit(0);
       }
  
  
  

Mime
View raw message