From ca9ef3c2e8dc4edcefaf8b8315f059abfaa09a4d Mon Sep 17 00:00:00 2001 From: "rpotts%netscape.com" Date: Wed, 2 Sep 1998 00:27:54 +0000 Subject: [PATCH] Fixed return value from PerformNastyWindowsAsyncDNSHack(...) git-svn-id: svn://10.0.0.236/trunk@9071 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/network/module/nsNetService.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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; }