From 6c111e95db43a41e9f1010d25b23a73bd310c3b3 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Thu, 7 Mar 2002 08:58:21 +0000 Subject: [PATCH] When using mod_ssl, it is possible that we'd be called when there are no protocol filters, so stop the segfault. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93755 13f79535-47bb-0310-9956-ffa450edef68 --- server/util_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/util_filter.c b/server/util_filter.c index e0032c986a..5d597c37ca 100644 --- a/server/util_filter.c +++ b/server/util_filter.c @@ -459,7 +459,7 @@ static void remove_any_filter(ap_filter_t *f, ap_filter_t **r_filt, ap_filter_t ap_filter_t **curr = r_filt ? r_filt : c_filt; ap_filter_t *fscan = *curr; - if (*p_filt == f) + if (p_filt && *p_filt == f) *p_filt = (*p_filt)->next; if (*curr == f) { -- 2.40.0