]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
core: forward flags to recursive/folding call to ap_rgetline_core().
authorYann Ylavic <ylavic@apache.org>
Fri, 20 Apr 2018 11:07:23 +0000 (11:07 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 20 Apr 2018 11:07:23 +0000 (11:07 +0000)
We still need them when folding, other than AP_GETLINE_FOLD itself of course.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1829645 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index d744ce459eaae1252df5c137efb755438ac65a0e..27611ed5089192014ada0ec2170cddc031043395 100644 (file)
@@ -464,8 +464,8 @@ AP_DECLARE(apr_status_t) ap_rgetline_core(char **s, apr_size_t n,
 
                     next_size = n - bytes_handled;
 
-                    rv = ap_rgetline_core(&tmp, next_size,
-                                          &next_len, r, 0, bb);
+                    rv = ap_rgetline_core(&tmp, next_size, &next_len, r,
+                                          flags & ~AP_GETLINE_FOLD, bb);
                     if (rv != APR_SUCCESS) {
                         goto cleanup;
                     }