]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
create and attach cannot be used before the globalmem has been initialized.
authorJean-Frederic Clere <jfclere@apache.org>
Tue, 1 Aug 2006 09:46:00 +0000 (09:46 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Tue, 1 Aug 2006 09:46:00 +0000 (09:46 +0000)
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

index 677f0444888638d6a9cf932cf4ff2902c0492630..cdbe85f92a8e080f82504ec43ef6b941099ea5fe 100644 (file)
@@ -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;