summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2012-03-23 23:43:28 +0100
committerEric Covener <covener@apache.org>2012-03-23 23:43:28 +0100
commit67049737885765e499aec73ad4a7403ad4b4c20c (patch)
tree01356ff62a89869bb7adb531e700a27a96090179 /modules
parentRemoved outdated question about Netscape Navigator 3 (re English version) (diff)
downloadapache2-67049737885765e499aec73ad4a7403ad4b4c20c.tar.xz
apache2-67049737885765e499aec73ad4a7403ad4b4c20c.zip
PR52981: mod_request: fix check for bad KeptBodySize argument
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1304641 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/filters/mod_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/filters/mod_request.c b/modules/filters/mod_request.c
index ae59ab6329..9cbde0a988 100644
--- a/modules/filters/mod_request.c
+++ b/modules/filters/mod_request.c
@@ -358,7 +358,7 @@ static const char *set_kept_body_size(cmd_parms *cmd, void *dconf,
char *end = NULL;
if (APR_SUCCESS != apr_strtoff(&(conf->keep_body), arg, &end, 10)
- || conf->keep_body < 0 || end) {
+ || conf->keep_body < 0 || *end) {
return "KeptBodySize must be a valid size in bytes, or zero.";
}
conf->keep_body_set = 1;