From: Jean-Frederic Clere Date: Tue, 1 Aug 2006 09:46:00 +0000 (+0000) Subject: create and attach cannot be used before the globalmem has been initialized. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2212dca5d06437b582b108c63baf6b8eedcf1e2c;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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;