From c9c3ed38a2d8dcbe9a1a32d8aeebeb867f974039 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Fri, 15 May 2020 13:22:56 +0000 Subject: [PATCH] Follow up to r1877785: ap_filter_should_yield() is not NULL safe :p git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877787 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 a6ab80124c7..649615bf80a 100644 --- a/server/util_filter.c +++ b/server/util_filter.c @@ -1276,7 +1276,7 @@ AP_DECLARE_NONSTD(int) ap_filter_output_pending(conn_rec *c) } if ((fp->bb && !APR_BRIGADE_EMPTY(fp->bb)) - || ap_filter_should_yield(f->next)) { + || (f->next && ap_filter_should_yield(f->next))) { rc = OK; break; } -- 2.47.3