From: Jim Jagielski Date: Wed, 28 May 2008 12:58:01 +0000 (+0000) Subject: Merge r656400 from trunk: X-Git-Tag: 2.2.9~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50c06bf7610b5242b1d1278fcc0b18dd811c4e20;p=thirdparty%2Fapache%2Fhttpd.git Merge r656400 from trunk: * Check for failure of apr_file_info_get call Reported By: BOYA SUN Submitted by: rpluem Reviewed by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@660934 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/STATUS b/STATUS index b00b36e4c97..598be0560b9 100644 --- a/STATUS +++ b/STATUS @@ -94,14 +94,6 @@ RELEASE SHOWSTOPPERS: 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 - 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. diff --git a/support/ab.c b/support/ab.c index 2f589e831a7..e39536d1e68 100644 --- a/support/ab.c +++ b/support/ab.c @@ -1947,7 +1947,12 @@ static int open_postfile(const char *pfile) 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) {