PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * ab.c: Check for failure of apr_file_info_get call
- [rpluem] Reported By: BOYA SUN <boya.sun case.edu>
- Trunk version of patch:
- http://svn.apache.org/viewvc?view=rev&revision=656400
- Backport version for 2.2.x of patch:
- Trunk version of patch works
- +1: fielding, rpluem, jim
-
* mod_proxy: Fix a regression to 2.2.8!!! that is caused by backport
r657443. This regression causes blank pages to be displayed if the
backend connection is faulty and mod_deflate is in place.
return rv;
}
- apr_file_info_get(&finfo, APR_FINFO_NORM, postfd);
+ rv = apr_file_info_get(&finfo, APR_FINFO_NORM, postfd);
+ if (rv != APR_SUCCESS) {
+ fprintf(stderr, "ab: Could not stat POST data file (%s): %s\n", pfile,
+ apr_strerror(rv, errmsg, sizeof errmsg));
+ return rv;
+ }
postlen = (apr_size_t)finfo.size;
postdata = malloc(postlen);
if (!postdata) {