fixes bug 51907 "crashes on redirect Trunk [@nsHttpChannel::ProcessResponse]"

r=gagan, sr=mscott, a=dbaron
This commit is contained in:
darin%netscape.com 2001-10-03 22:19:13 +00:00
parent 74c34ddcbf
commit 0b676b7222

View File

@ -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));