Bug 979422 - HTTP old cache wrapper performs UMR if onCacheEntryCheck fails, r=michal

This commit is contained in:
Honza Bambas 2014-03-17 18:21:39 +01:00
parent cf96244f17
commit 6806499fb7

View File

@ -696,7 +696,7 @@ _OldCacheLoad::Check()
NS_WARNING("cache check failed");
}
if (result == nsICacheEntryOpenCallback::ENTRY_NOT_WANTED) {
if (NS_FAILED(rv) || result == nsICacheEntryOpenCallback::ENTRY_NOT_WANTED) {
mCacheEntry->Close();
mCacheEntry = nullptr;
mStatus = NS_ERROR_CACHE_KEY_NOT_FOUND;