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, 24 Jul 2001 19:00:12 GMT
dougm       01/07/24 12:00:12

  Modified:    modules/ssl ssl_engine_io.c
  Log:
  bandaid for segv in ssl_io_filter_Output
  
  Revision  Changes    Path
  1.9       +11 -1     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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ssl_engine_io.c	2001/07/19 16:08:01	1.8
  +++ ssl_engine_io.c	2001/07/24 19:00:12	1.9
  @@ -323,7 +323,17 @@
   {
       SSLFilterRec *pRec=f->ctx;
       apr_bucket *pbktIn;
  -conn_rec *c = SSL_get_app_data (pRec->pssl);
  +    conn_rec *c = SSL_get_app_data (pRec->pssl);
  +
  +    if (!c) {
  +        /* if this happens we have already called ssl_hook_CloseConnection
  +         * if we dont return here, this routine will segv
  +         * XXX: this doesnt seem right, ssl_hook_CloseConnection probably 
  +         * is being called to early, but as the README:TODO says:
  +         * "Cleanup ssl_engine_io.c !!"
  +         */
  +        return APR_EOF;
  +    }
   
       APR_BRIGADE_FOREACH(pbktIn,pbbIn) {
   	const char *data;
  
  
  

Mime
View raw message