Commit f6b3a8ef authored by Doug MacEachern's avatar Doug MacEachern
Browse files

bandaid for segv in ssl_io_filter_Output


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89681 13f79535-47bb-0310-9956-ffa450edef68
parent 691b3259
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -325,6 +325,16 @@ apr_status_t ssl_io_filter_Output(ap_filter_t *f,apr_bucket_brigade *pbbIn)
    apr_bucket *pbktIn;
    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;
	apr_size_t len, n;