httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: httpd-2.0/modules/ssl ssl_engine_io.c
Date Tue, 14 Aug 2001 17:03:03 GMT
dougm       01/08/14 10:03:03

  Modified:    modules/ssl ssl_engine_io.c
  Log:
  need to check return value of ssl_hook_process_connection
  if != APR_SUCCESS the ssl connection has been shutdown
  (for example client cert was revoked)
  
  Revision  Changes    Path
  1.16      +7 -2      httpd-2.0/modules/ssl/ssl_engine_io.c
  
  Index: ssl_engine_io.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_engine_io.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ssl_engine_io.c	2001/08/08 15:49:07	1.15
  +++ ssl_engine_io.c	2001/08/14 17:03:03	1.16
  @@ -282,8 +282,13 @@
           
           assert(n >= 0 && (apr_size_t)n == len);
   
  -        ssl_hook_process_connection (pRec);
  -
  +        if ((ret = ssl_hook_process_connection(pRec)) != APR_SUCCESS) {
  +            /* if this is the case, ssl connection has been shutdown
  +             * and pRec->pssl has been freed
  +             */
  +            return ret;
  +        }
  +        
           /* pass along all of the current BIO */
           while ((n = ssl_io_hook_read(pRec->pssl,
                                        (unsigned char *)buf, sizeof(buf))) > 0)
  
  
  

Mime
View raw message