]> granicus.if.org Git - apache/commitdiff
When using mod_ssl, it is possible that we'd be called when there are no
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 7 Mar 2002 08:58:21 +0000 (08:58 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 7 Mar 2002 08:58:21 +0000 (08:58 +0000)
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

index e0032c986a317c1c7c3f5822ed2346f8a60faf16..5d597c37cae0a31acacd5b2e0ad6b8b89ae674d8 100644 (file)
@@ -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) {