]> granicus.if.org Git - apache/commitdiff
If the MIME-continuation line returns nothing, then we should return not
authorJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 6 Feb 2002 02:20:13 +0000 (02:20 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 6 Feb 2002 02:20:13 +0000 (02:20 +0000)
segfault.

(A minor change to Jeff's patch is that we ignore the EBCDIC code path.)

Submitted by: Jeff Trawick
Reviewed by: Justin Erenkrantz

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

server/protocol.c

index e87b903c0e23dfa746baec4c2fddc868a62c40ab..d0e1ae26f4f24d3756339aff288f456df76fe182 100644 (file)
@@ -401,6 +401,12 @@ AP_DECLARE(apr_status_t) ap_rgetline(char **s, apr_size_t n,
             return rv;
         }
 
+        if (APR_BRIGADE_EMPTY(bb)) {
+            *read = bytes_handled;
+            apr_brigade_destroy(bb);
+            return APR_SUCCESS;
+        }
+
         e = APR_BRIGADE_FIRST(bb);
 
         /* If we see an EOS, don't bother doing anything more. */