mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
fixes bug 51907 "crashes on redirect Trunk [@nsHttpChannel::ProcessResponse]"
r=gagan, sr=mscott, a=dbaron
This commit is contained in:
parent
74c34ddcbf
commit
0b676b7222
@ -479,7 +479,7 @@ nsHttpChannel::ProcessResponse()
|
|||||||
// these redirects can be cached (don't store the response body)
|
// these redirects can be cached (don't store the response body)
|
||||||
if (mCacheEntry) {
|
if (mCacheEntry) {
|
||||||
rv = InitCacheEntry();
|
rv = InitCacheEntry();
|
||||||
if (NS_SUCCEEDED(rv)) {
|
if (NS_SUCCEEDED(rv) && mCacheEntry) {
|
||||||
// XXX we must open an output stream to force the cache service to
|
// XXX we must open an output stream to force the cache service to
|
||||||
// select a cache device for our entry -- bad cache service!!
|
// select a cache device for our entry -- bad cache service!!
|
||||||
rv = mCacheEntry->GetTransport(getter_AddRefs(mCacheTransport));
|
rv = mCacheEntry->GetTransport(getter_AddRefs(mCacheTransport));
|
||||||
|
Loading…
Reference in New Issue
Block a user