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