to be a bit more descriptive. Move the check to inside the inner while()
loop and add an additional check for eos. If we get an EOS bucket, there
is no point in going further. Hopefully this will fix the last seg fault
in the function.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92704
13f79535-47bb-0310-9956-
ffa450edef68
&zero /* readline */))) {
return rv;
}
- if (APR_BRIGADE_EMPTY(bb)) {
- /* The connection aborted or timed out */
- return APR_TIMEUP;
- }
-
/* loop through each bucket */
while (!found) {
+ if (*eos || APR_BRIGADE_EMPTY(bb)) {
+ /* The connection aborted or timed out */
+ return APR_ECONNABORTED;
+ }
e = APR_BRIGADE_FIRST(bb);
if (APR_BUCKET_IS_EOS(e)) {
*eos = 1;