From 2212dca5d06437b582b108c63baf6b8eedcf1e2c Mon Sep 17 00:00:00 2001 From: Jean-Frederic Clere Date: Tue, 1 Aug 2006 09:46:00 +0000 Subject: [PATCH] create and attach cannot be used before the globalmem has been initialized. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-proxy-scoreboard@427505 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mem/sharedmem_util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/mem/sharedmem_util.c b/modules/mem/sharedmem_util.c index 677f0444888..cdbe85f92a8 100644 --- a/modules/mem/sharedmem_util.c +++ b/modules/mem/sharedmem_util.c @@ -90,6 +90,8 @@ static apr_status_t ap_slotmem_create(ap_slotmem_t **new, const char *name, apr_ const char *fname; apr_status_t rv; + if (globalpool == NULL) + return APR_ENOSHMAVAIL; if (name) { if (name[0] == ':') fname = name; @@ -173,6 +175,8 @@ static apr_status_t ap_slotmem_attach(ap_slotmem_t **new, const char *name, apr_ const char *fname; apr_status_t rv; + if (globalpool == NULL) + return APR_ENOSHMAVAIL; if (name) { if (name[0] == ':') fname = name; -- 2.47.2