Mailing List Archive

[6845] cherokee/trunk/cherokee/flcache.c: Fixes TRACE() entry that might access invalid memory.
Revision: 6845
http://svn.cherokee-project.com/changeset/6845
Author: alo
Date: 2011-09-14 11:21:01 +0200 (Wed, 14 Sep 2011)
Log Message:
-----------
Fixes TRACE() entry that might access invalid memory.

Modified Paths:
--------------
cherokee/trunk/cherokee/flcache.c

Modified: cherokee/trunk/cherokee/flcache.c
===================================================================
--- cherokee/trunk/cherokee/flcache.c 2011-09-14 08:31:22 UTC (rev 6844)
+++ cherokee/trunk/cherokee/flcache.c 2011-09-14 09:21:01 UTC (rev 6845)
@@ -837,11 +837,14 @@
{
ret_t ret;

+ TRACE (ENTRIES, "Removing expired Front-line cache entry '%s'\n",
+ entry->file.buf ? entry->file.buf : "");
+
+ /* Remove item. 'entry' is freed afterwards.
+ */
ret = cherokee_avl_flcache_del (&flcache->request_map, entry);

- TRACE (ENTRIES, "Removing expired Front-line cache entry '%s' - ret=%d\n",
- entry->file.buf ? entry->file.buf : "", ret);
-
+ TRACE (ENTRIES, "Removing expired Front-line cache entry. ret = %d\n", ret);
return ret;
}