]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Follow up to r1877785: ap_filter_should_yield() is not NULL safe :p
authorYann Ylavic <ylavic@apache.org>
Fri, 15 May 2020 13:22:56 +0000 (13:22 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 15 May 2020 13:22:56 +0000 (13:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877787 13f79535-47bb-0310-9956-ffa450edef68

server/util_filter.c

index a6ab80124c760395f70eca3202740b4e9e0153d2..649615bf80a10fcb2080307583d65e05381386f6 100644 (file)
@@ -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;
             }