Bug 938803 - Correct typo in nsHostResolver::ResolveHost for Bug 941884: 'he' to 'unspecHe' r=mcmanus
authorSteve Workman <sworkman@mozilla.com>
Mon, 25 Nov 2013 14:58:29 -0800
changeset 157437 9d17f28e30dd2752ea613c94828db2a149692f03
parent 157436 8a3b4b9b786ca90d57735e3e9edc03499bf518c7
child 157438 ca137ceb2877232c148f08907698fb94df7bb6a3
push id25713
push usercbook@mozilla.com
push dateTue, 26 Nov 2013 11:36:06 +0000
treeherdermozilla-central@99479edbee2a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus
bugs938803, 941884
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 938803 - Correct typo in nsHostResolver::ResolveHost for Bug 941884: 'he' to 'unspecHe' r=mcmanus
netwerk/dns/nsHostResolver.cpp
--- a/netwerk/dns/nsHostResolver.cpp
+++ b/netwerk/dns/nsHostResolver.cpp
@@ -675,17 +675,17 @@ nsHostResolver::ResolveHost(const char  
                                    "Entry should be resolved or negative.");
 
                         LOG(("  Trying AF_UNSPEC entry for [%s] af: %s.\n",
                             host, (af == PR_AF_INET) ? "AF_INET" : "AF_INET6"));
 
                         he->rec->addr_info = nullptr;
                         if (unspecHe->rec->negative) {
                             he->rec->negative = unspecHe->rec->negative;
-                        } else if (he->rec->addr_info) {
+                        } else if (unspecHe->rec->addr_info) {
                             // Search for any valid address in the AF_UNSPEC entry
                             // in the cache (not blacklisted and from the right
                             // family).
                             NetAddrElement *addrIter =
                                 unspecHe->rec->addr_info->mAddresses.getFirst();
                             while (addrIter) {
                                 if ((af == addrIter->mAddress.inet.family) &&
                                      !unspecHe->rec->Blacklisted(&addrIter->mAddress)) {