From 45faa483e5e5d6a2e4c4ed41ebe818c881e91a5f Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Thu, 8 Apr 2010 12:20:20 +0000 Subject: Ensure an error'd fetch's llcache object is implicitly stale so it is not reused svn path=/trunk/netsurf/; revision=10301 --- content/llcache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'content/llcache.c') diff --git a/content/llcache.c b/content/llcache.c index 1d1b043b3..8634a81a4 100644 --- a/content/llcache.c +++ b/content/llcache.c @@ -1501,7 +1501,9 @@ void llcache_fetch_callback(fetch_msg msg, void *p, const void *data, /* An error occurred while fetching */ /* The fetch has has already been cleaned up by the fetcher */ object->fetch.fetch = NULL; - /** \todo Ensure this object becomes stale */ + + /* Invalidate cache control data */ + memset(&(object->cache), 0, sizeof(llcache_cache_control)); /** \todo Consider using errorcode for something */ -- cgit v1.2.3