correct stupid mistake
authorStefan Fritsch <sf@apache.org>
Mon, 14 Jun 2010 21:00:06 +0000 (21:00 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 14 Jun 2010 21:00:06 +0000 (21:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@954643 13f79535-47bb-0310-9956-ffa450edef68

server/core_filters.c

index 827986e17907013c1ae524570b83260af5523517..bfc830f904d9ec491f420d99a3f5814f0e5436eb 100644 (file)
@@ -468,7 +468,7 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb)
             non_file_bytes_in_brigade = 0;
         }
         else if (!APR_BUCKET_IS_METADATA(bucket)) {
-            if (bucket->length != (apr_size_t)-1) {
+            if (bucket->length == (apr_size_t)-1) {
                 const char *data;
                 apr_size_t length;
                 /* XXX support nonblocking read here? */