httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1304641 - /httpd/httpd/trunk/modules/filters/mod_request.c
Date Fri, 23 Mar 2012 22:43:29 GMT
Author: covener
Date: Fri Mar 23 22:43:28 2012
New Revision: 1304641

URL: http://svn.apache.org/viewvc?rev=1304641&view=rev
Log:
mod_request: fix check for bad KeptBodySize argument


Modified:
    httpd/httpd/trunk/modules/filters/mod_request.c

Modified: httpd/httpd/trunk/modules/filters/mod_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/mod_request.c?rev=1304641&r1=1304640&r2=1304641&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_request.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_request.c Fri Mar 23 22:43:28 2012
@@ -358,7 +358,7 @@ static const char *set_kept_body_size(cm
     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;



Mime
View raw message