]> granicus.if.org Git - apache/blobdiff - server/core_filters.c
Fix a signed/unsigned comparison that can never match.
[apache] / server / core_filters.c
index 51a17a6be72f3d9202c170de6bfa5c54e1408f13..bb02b207fabcc4158f07d81506907c67d6a42d42 100644 (file)
@@ -277,7 +277,7 @@ apr_status_t ap_core_input_filter(ap_filter_t *f, apr_bucket_brigade *b,
             while ((len < readbytes) && (rv == APR_SUCCESS)
                    && (e != APR_BRIGADE_SENTINEL(ctx->bb))) {
                 /* Check for the availability of buckets with known length */
-                if (e->length != -1) {
+                if (e->length != (apr_size_t)-1) {
                     len += e->length;
                     e = APR_BUCKET_NEXT(e);
                 }