source: mod_gnutls/debian/patches/proxy-segfault-fix.patch @ 8ed8e96

debian/masterdebian/stretch-backportsjessie-backports
Last change on this file since 8ed8e96 was 8ed8e96, checked in by Daniel Kahn Gillmor <dkg@…>, 5 years ago

committing NMU 0.6-1.4 (thanks, Thomas!)

  • Property mode set to 100644
File size: 1.0 KB
  • src/mod_gnutls.c

    From 3d361b8e5d7c4c971d344658728979fe978dc759 Mon Sep 17 00:00:00 2001
    From: Thomas Klute <thomas2.klute@uni-dortmund.de>
    Date: Tue, 13 Jan 2015 17:04:38 +0100
    Subject: [PATCH] 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(-)
    
    a b  
    8080    if(sc->enabled == GNUTLS_ENABLED_FALSE) {
    8181        return 1;
    8282    }
    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);
    8587    mgs_cleanup_pre_config(c->pool);
    8688    sc->enabled = 0;
    8789    return 1;
Note: See TracBrowser for help on using the repository browser.