bug=80848

r=peterlubczynski
sr=darin
Make it so the return values  from ExamineForProxy() are inspected for validity.


git-svn-id: svn://10.0.0.236/trunk@95176 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org 2001-05-17 01:03:12 +00:00
parent becd734ed3
commit 9f8187b218
2 changed files with 2 additions and 2 deletions

View File

@ -2217,7 +2217,7 @@ NS_IMETHODIMP nsPluginHostImpl::FindProxyForURL(const char* url, char* *result)
return res;
}
if (!isProxyEnabled) {
if (!isProxyEnabled || !proxyHost.get() || proxyPort <= 0) {
*result = PL_strdup("DIRECT");
}
else {

View File

@ -2217,7 +2217,7 @@ NS_IMETHODIMP nsPluginHostImpl::FindProxyForURL(const char* url, char* *result)
return res;
}
if (!isProxyEnabled) {
if (!isProxyEnabled || !proxyHost.get() || proxyPort <= 0) {
*result = PL_strdup("DIRECT");
}
else {