diff --git a/mozilla/network/module/nsNetService.cpp b/mozilla/network/module/nsNetService.cpp index 5f6e8aa45b9..18e0dae9a7a 100644 --- a/mozilla/network/module/nsNetService.cpp +++ b/mozilla/network/module/nsNetService.cpp @@ -589,12 +589,13 @@ nsresult PerformNastyWindowsAsyncDNSHack(URL_Struct *URL_s, nsIURL* aURL) c = (int) *(++pc); d = (int) *(++pc); URL_s->IPAddressString = PR_smprintf("%d.%d.%d.%d", a,b,c,d); + } else { + /* + * If we fail to resolve a host on a HTTP connection, then + * abort the connection to prevent a deadlock... + */ + rv = NS_ERROR_FAILURE; } - /* - * If we fail to resolve a host on a HTTP connection, then abort the - * connection to prevent a deadlock... - */ - rv = NS_ERROR_FAILURE; } return rv; }