Skip to content

Commit

Permalink
Bug 829858 - Null dereference in nsHttpChannel::InitOfflineCacheEntry…
Browse files Browse the repository at this point in the history
…(), r=bsmith
  • Loading branch information
mayhemer committed Jan 14, 2013
1 parent 09716bc commit 21f8997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netwerk/protocol/http/nsHttpChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3610,13 +3610,13 @@ nsHttpChannel::InitOfflineCacheEntry()
}

if (!mResponseHead || mResponseHead->NoStore()) {
if (mResponseHead->NoStore()) {
if (mResponseHead && mResponseHead->NoStore()) {
mOfflineCacheEntry->AsyncDoom(nullptr);
}

CloseOfflineCacheEntry();

if (mResponseHead->NoStore()) {
if (mResponseHead && mResponseHead->NoStore()) {
return NS_ERROR_NOT_AVAILABLE;
}

Expand Down

0 comments on commit 21f8997

Please sign in to comment.