From 800d748a2c7431411b5e7b1d93fcd016c2b327a6 Mon Sep 17 00:00:00 2001 From: "gagan%netscape.com" Date: Mon, 20 Sep 1999 18:56:44 +0000 Subject: [PATCH] Fix the bad prefs returning a value for non-existent proxy port. Fixes today morning horkage in service. git-svn-id: svn://10.0.0.236/trunk@48351 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/protocol/http/src/nsHTTPHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/netwerk/protocol/http/src/nsHTTPHandler.cpp b/mozilla/netwerk/protocol/http/src/nsHTTPHandler.cpp index 7b6ed851754..f38978218ac 100644 --- a/mozilla/netwerk/protocol/http/src/nsHTTPHandler.cpp +++ b/mozilla/netwerk/protocol/http/src/nsHTTPHandler.cpp @@ -124,7 +124,7 @@ nsHTTPHandler::nsHTTPHandler():mProxy(nsnull) printf("Read HTTP proxy = %s:%d\n", (const char*)proxyServer,proxyPort); #endif - if (NS_SUCCEEDED(rv)) + if (NS_SUCCEEDED(rv) && (proxyPort>0)) // currently a bug in IntPref { if (NS_FAILED(SetProxyHost(proxyServer))) NS_ERROR("Failed to set the HTTP proxy server");