From e9bd30d3289898398cf851a25ceaa400b46205ad Mon Sep 17 00:00:00 2001 From: "gordon%netscape.com" Date: Wed, 3 Nov 1999 02:42:52 +0000 Subject: [PATCH] Fix more of my bustage: pass clientContext parameter back on callbacks from nsDNSService::Lookup(). r=warren. --- netwerk/dns/src/nsDnsService.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/netwerk/dns/src/nsDnsService.cpp b/netwerk/dns/src/nsDnsService.cpp index 10a82e5a9a0..d8352e6b02a 100644 --- a/netwerk/dns/src/nsDnsService.cpp +++ b/netwerk/dns/src/nsDnsService.cpp @@ -478,7 +478,6 @@ nsDNSService::Lookup(nsISupports* clientContext, nsIRequest* *DNSRequest) { nsresult rv, result = NS_OK; - nsISupports* ctxt = nsnull; // initateLookupNeeded = false; // lock dns service @@ -530,7 +529,7 @@ nsDNSService::Lookup(nsISupports* clientContext, if (!hostentry) return NS_ERROR_OUT_OF_MEMORY; - rv = listener->OnStartLookup(ctxt, hostName); + rv = listener->OnStartLookup(clientContext, hostName); PRBool numeric = PR_TRUE; for (const char *hostCheck = hostName; *hostCheck; hostCheck++) { @@ -593,7 +592,7 @@ nsDNSService::Lookup(nsISupports* clientContext, } if (PR_SUCCESS == status) { - rv = listener->OnFound(ctxt, hostName, hostentry); + rv = listener->OnFound(clientContext, hostName, hostentry); result = NS_OK; } else { @@ -603,7 +602,7 @@ nsDNSService::Lookup(nsISupports* clientContext, // listener does not need to copy it... delete hostentry; - rv = listener->OnStopLookup(ctxt, hostName, result); + rv = listener->OnStopLookup(clientContext, hostName, result); return result; #endif