httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1447871 - /httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
Date Tue, 19 Feb 2013 19:08:24 GMT
Author: jim
Date: Tue Feb 19 19:08:24 2013
New Revision: 1447871

URL: http://svn.apache.org/r1447871
Log:
ensure positive

Modified:
    httpd/httpd/trunk/server/mpm/eventopt/eventopt.c

Modified: httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/eventopt/eventopt.c?rev=1447871&r1=1447870&r2=1447871&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/eventopt/eventopt.c (original)
+++ httpd/httpd/trunk/server/mpm/eventopt/eventopt.c Tue Feb 19 19:08:24 2013
@@ -3337,6 +3337,9 @@ static const char *set_worker_factor(cmd
     if (*endptr)
         return "error parsing value";
 
+    if (val <= 0)
+        return "AsyncRequestWorkerFactor argument must be a positive number";
+
     worker_factor = val * WORKER_FACTOR_SCALE;
     if (worker_factor == 0)
         worker_factor = 1;



Mime
View raw message