From 29d9b38fe81ff54cbd8ac00c3d63bc7dd806eb9e Mon Sep 17 00:00:00 2001 From: "darin%netscape.com" Date: Thu, 10 May 2001 00:32:42 +0000 Subject: [PATCH] make code more robust git-svn-id: svn://10.0.0.236/branches/HttpConnectionMagic_20010415_BRANCH@94430 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp b/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp index 9be498bd8a4..b3ac85bc353 100644 --- a/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp +++ b/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp @@ -167,7 +167,10 @@ nsHttpChannel::Init(nsIURI *uri, if (NS_FAILED(rv)) return rv; // Notify nsIHttpNotify implementations - return nsHttpHandler::get()->OnModifyRequest(this); + rv = nsHttpHandler::get()->OnModifyRequest(this); + NS_ASSERTION(NS_SUCCEEDED(rv), "OnModifyRequest failed"); + + return NS_OK; } //----------------------------------------------------------------------------- @@ -408,7 +411,8 @@ nsHttpChannel::ProcessNormal() } // notify nsIHttpNotify implementations - nsHttpHandler::get()->OnExamineResponse(this); + rv = nsHttpHandler::get()->OnExamineResponse(this); + NS_ASSERTION(NS_SUCCEEDED(rv), "OnExamineResponse failed"); return mListener->OnStartRequest(this, mListenerContext); }