]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
tolerate apr-1.5
authorEric Covener <covener@apache.org>
Wed, 11 Aug 2021 10:49:56 +0000 (10:49 +0000)
committerEric Covener <covener@apache.org>
Wed, 11 Aug 2021 10:49:56 +0000 (10:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1892207 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index d87417f7621d6a0573e131939b3fbed47516a018..e44e39afe3ed9d74aa35bfdaee11a033c93f5b1c 100644 (file)
@@ -2668,7 +2668,7 @@ AP_DECLARE(char *) ap_append_pid(apr_pool_t *p, const char *string,
  * 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_parameter_parse(
     }
 
     if (tout < 0) { 
-        return APR_ERANGE;
+        return APR_EGENERAL;
     }
 
     switch (*time_str) {