fixes bug 251969 "crash [@ nsHttpChannel::OnStopRequest]" r=timeless sr=bzbarsky

This commit is contained in:
darin%meer.net 2004-09-23 18:49:17 +00:00
Родитель 376fa8e696
Коммит 1069b449de
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -3620,7 +3620,9 @@ nsHttpChannel::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult st
// grab reference to connection in case we need to retry an
// authentication request over it.
nsRefPtr<nsAHttpConnection> conn = mTransaction->Connection();
nsRefPtr<nsAHttpConnection> conn;
if (mCaps & NS_HTTP_STICKY_CONNECTION)
conn = mTransaction->Connection();
// at this point, we're done with the transaction
NS_RELEASE(mTransaction);
@ -3629,6 +3631,7 @@ nsHttpChannel::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult st
// handle auth retry...
if (mAuthRetryPending && NS_SUCCEEDED(status)) {
NS_ASSERTION(conn, "we should have a connection");
mAuthRetryPending = PR_FALSE;
status = DoAuthRetry(conn);
if (NS_SUCCEEDED(status))