You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2016/05/11 20:31:49 UTC

[trafficserver] 25/33: TS-4425: Switch DNS.cc over to Ptr::get().

This is an automated email from the ASF dual-hosted git repository.

jpeach pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit 6ee02bff49e076f52beaba225dba5bf4fc8485c2
Author: James Peach <jp...@apache.org>
AuthorDate: Sat May 7 13:10:18 2016 -0700

    TS-4425: Switch DNS.cc over to Ptr::get().
---
 iocore/dns/DNS.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/iocore/dns/DNS.cc b/iocore/dns/DNS.cc
index fbd0416..02e65d4 100644
--- a/iocore/dns/DNS.cc
+++ b/iocore/dns/DNS.cc
@@ -1070,7 +1070,7 @@ DNSEntry::mainEvent(int event, Event *e)
     Debug("dns", "timeout for query %s", qname);
     if (dnsH->txn_lookup_timeout) {
       timeout = NULL;
-      dns_result(dnsH, this, result_ent, false); // do not retry -- we are over TXN timeout on DNS alone!
+      dns_result(dnsH, this, result_ent.get(), false); // do not retry -- we are over TXN timeout on DNS alone!
       return EVENT_DONE;
     }
     if (written_flag) {
@@ -1080,7 +1080,7 @@ DNSEntry::mainEvent(int event, Event *e)
       DNS_DECREMENT_DYN_STAT(dns_in_flight_stat);
     }
     timeout = NULL;
-    dns_result(dnsH, this, result_ent, true);
+    dns_result(dnsH, this, result_ent.get(), true);
     return EVENT_DONE;
   }
 }
@@ -1266,7 +1266,7 @@ DNSEntry::postEvent(int /* event ATS_UNUSED */, Event * /* e ATS_UNUSED */)
 {
   if (!action.cancelled) {
     Debug("dns", "called back continuation for %s", qname);
-    action.continuation->handleEvent(DNS_EVENT_LOOKUP, result_ent);
+    action.continuation->handleEvent(DNS_EVENT_LOOKUP, result_ent.get());
   }
   result_ent = NULL;
   action.mutex = NULL;

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.