]> granicus.if.org Git - apache/commitdiff
Fix a nasty little bug that could be hosing mod_mem_cache as well as mod_disk_cache
authorBill Stoddard <stoddard@apache.org>
Fri, 15 Feb 2002 03:54:47 +0000 (03:54 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 15 Feb 2002 03:54:47 +0000 (03:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93423 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/cache_storage.c

index ac26b5c37c5c36a1670f0acd46f6b94655b9bbee..c109d628d70e2d401ea2e3a0db442c59577b0ac8 100644 (file)
@@ -110,7 +110,7 @@ int cache_remove_url(request_rec *r, const char *types, char *url)
  */
 int cache_create_entity(request_rec *r, const char *types, char *url, apr_size_t size)
 {
-    cache_handle_t *h = apr_pcalloc(r->pool, sizeof(h));
+    cache_handle_t *h = apr_pcalloc(r->pool, sizeof(cache_handle_t));
     const char *next = types;
     const char *type;
     char *key;