Ensure an error'd fetch's llcache object is implicitly stale so it is not reused

svn path=/trunk/netsurf/; revision=10301
This commit is contained in:
Daniel Silverstone 2010-04-08 12:20:20 +00:00
parent 6c9e4bea8e
commit 45faa483e5
1 changed files with 3 additions and 1 deletions

View File

@ -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 */