summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2013-11-16 18:55:39 +0000
committerGraham Leggett <minfrin@apache.org>2013-11-16 18:55:39 +0000
commit0f8ae344b67f87f88d492a5f36ab78e9c9eb4b44 (patch)
treec0484722759f0f43de9552f904ad18b0053c36a7 /server
parenta650818448b0e38255cdb20b21673fcc724153eb (diff)
downloadhttpd-0f8ae344b67f87f88d492a5f36ab78e9c9eb4b44.tar.gz
Potential rejection of valid MaxMemFree and ThreadStackSize directives
trunk patch: https://svn.apache.org/r1542338 Submitted by: Mike Rumph <mike.rumph oracle.com> Reviewed by: trawick, covener, sf git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1542549 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/mpm_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/mpm_common.c b/server/mpm_common.c
index 4448ec60dc..348e667606 100644
--- a/server/mpm_common.c
+++ b/server/mpm_common.c
@@ -378,6 +378,7 @@ const char *ap_mpm_set_max_mem_free(cmd_parms *cmd, void *dummy,
return err;
}
+ errno = 0;
value = strtol(arg, NULL, 10);
if (value < 0 || errno == ERANGE)
return apr_pstrcat(cmd->pool, "Invalid MaxMemFree value: ",
@@ -397,6 +398,7 @@ const char *ap_mpm_set_thread_stacksize(cmd_parms *cmd, void *dummy,
return err;
}
+ errno = 0;
value = strtol(arg, NULL, 10);
if (value < 0 || errno == ERANGE)
return apr_pstrcat(cmd->pool, "Invalid ThreadStackSize value: ",