httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: httpd-2.0/server listen.c
Date Sun, 17 Dec 2000 12:30:30 GMT
trawick     00/12/17 04:30:29

  Modified:    server   listen.c
  Log:
  Call ap_log_error() instead of ap_log_rerror() from alloc_listener().
  This bug, introduced in a recent commit, caused a segfault when the
  hostname couldn't be resolved.
  
  Revision  Changes    Path
  1.43      +2 -2      httpd-2.0/server/listen.c
  
  Index: listen.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/listen.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- listen.c	2000/12/16 14:49:18	1.42
  +++ listen.c	2000/12/17 12:30:29	1.43
  @@ -224,8 +224,8 @@
            */
           if ((status = apr_getaddrinfo(&new->bind_addr, addr, APR_UNSPEC, port, 0,

                                         process->pool)) != APR_SUCCESS) {
  -            ap_log_rerror(APLOG_MARK, APLOG_CRIT, status, NULL,
  -                          "alloc_listener: failed to set up sockaddr for %s", addr);
  +            ap_log_error(APLOG_MARK, APLOG_CRIT, status, NULL,
  +			 "alloc_listener: failed to set up sockaddr for %s", addr);
               return;
           }
           if ((status = apr_create_socket(&new->sd, new->bind_addr->sa.sin.sin_family,

  
  
  

Mime
View raw message