source:
mod_gnutls/debian/patches/proxy-segfault-fix.patch
@
2db6923
Last change on this file since 2db6923 was 2db6923, checked in by , 7 years ago | |
---|---|
|
|
File size: 1.1 KB |
-
src/mod_gnutls.c
From: Thomas Klute <thomas2.klute@uni-dortmund.de> Date: Tue, 13 Jan 2015 17:04:38 +0100 Subject: Check if filters exist before removing them in ssl_engine_disable Trying to remove filters that are NULL leads to a segfault in the worker thread. Check if c->input_filters and c->output_filters are defined before removing and remove only if set. Also, output filters should be removed with the dedicated function. --- src/mod_gnutls.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mod_gnutls.c b/src/mod_gnutls.c index e576fb8..0a32ffd 100644
a b int ssl_engine_disable(conn_rec *c) { 80 80 if(sc->enabled == GNUTLS_ENABLED_FALSE) { 81 81 return 1; 82 82 } 83 ap_remove_input_filter(c->input_filters); 84 ap_remove_input_filter(c->output_filters); 83 if (c->input_filters) 84 ap_remove_input_filter(c->input_filters); 85 if (c->output_filters) 86 ap_remove_output_filter(c->output_filters); 85 87 mgs_cleanup_pre_config(c->pool); 86 88 sc->enabled = 0; 87 89 return 1;
Note: See TracBrowser
for help on using the repository browser.