httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/os/unix unixd.c
Date Sun, 13 Jan 2002 02:35:56 GMT
brianp      02/01/12 18:35:56

  Modified:    os/unix  unixd.c
  Log:
  Clear the output socket descriptor in unixd_accept() to make sure
  we don't supply a bogus socket to the caller if the accept fails.
  (This was causing problems in the worker MPM, which tried to process
  the returned socket if it was non-NULL, even if unixd_accept()
  returned an error.)
  
  Revision  Changes    Path
  1.44      +1 -0      httpd-2.0/os/unix/unixd.c
  
  Index: unixd.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/os/unix/unixd.c,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- unixd.c	27 Dec 2001 19:53:37 -0000	1.43
  +++ unixd.c	13 Jan 2002 02:35:56 -0000	1.44
  @@ -449,6 +449,7 @@
       apr_status_t status;
       int sockdes;
   
  +    *accepted = NULL;
       status = apr_accept(&csd, lr->sd, ptrans);
       if (status == APR_SUCCESS) { 
           *accepted = csd;
  
  
  

Mime
View raw message