You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2002/01/13 03:35:56 UTC

cvs commit: httpd-2.0/os/unix unixd.c

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;