You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2021/08/11 10:49:57 UTC
svn commit: r1892207 - /httpd/httpd/trunk/server/util.c
Author: covener
Date: Wed Aug 11 10:49:56 2021
New Revision: 1892207
URL: http://svn.apache.org/viewvc?rev=1892207&view=rev
Log:
tolerate apr-1.5
Modified:
httpd/httpd/trunk/server/util.c
Modified: httpd/httpd/trunk/server/util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util.c?rev=1892207&r1=1892206&r2=1892207&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util.c (original)
+++ httpd/httpd/trunk/server/util.c Wed Aug 11 10:49:56 2021
@@ -2668,7 +2668,7 @@ AP_DECLARE(char *) ap_append_pid(apr_poo
* in timeout_parameter.
* @return Status value indicating whether the parsing was successful or not.
*/
-#define CHECK_OVERFLOW(a, b) if (a > b) return APR_ERANGE
+#define CHECK_OVERFLOW(a, b) if (a > b) return APR_EGENERAL
AP_DECLARE(apr_status_t) ap_timeout_parameter_parse(
const char *timeout_parameter,
apr_interval_time_t *timeout,
@@ -2691,7 +2691,7 @@ AP_DECLARE(apr_status_t) ap_timeout_para
}
if (tout < 0) {
- return APR_ERANGE;
+ return APR_EGENERAL;
}
switch (*time_str) {