so be careful when comparing with the special value -1
Submitted by: Allan Edwards <ake@us.ibm.com>
Reviewed by: Jeff Trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97569
13f79535-47bb-0310-9956-
ffa450edef68
unresolved_length = 1;
continue;
}
- if (e->length < 0) {
+ if (e->length == (apr_size_t)-1) {
break;
}
size += e->length;
if (APR_BUCKET_IS_FLUSH(e)) {
flush = e;
}
- else if (e->length == -1) {
+ else if (e->length == (apr_size_t)-1) {
/* unknown amount of data (e.g. a pipe) */
const char *data;
apr_size_t len;
eos = 1;
break;
}
- if (e->length == -1) {
+ if (e->length == (apr_size_t)-1) {
apr_size_t len;
const char *ignored;
apr_status_t rv;