You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2021/02/22 17:04:05 UTC

[trafficserver] 01/02: Fix heap use after free in DNSProcessor::getby() (#3871)

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

zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit d5da3a001db337088669bb14aa640b4d93dc7dc0
Author: Oknet <xu...@skyguard.com.cn>
AuthorDate: Fri Jan 29 07:05:38 2021 +0800

    Fix heap use after free in DNSProcessor::getby() (#3871)
    
    (cherry picked from commit e9ea6b086d673eabeb122dad4e79f439d3786497)
---
 iocore/dns/DNS.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/dns/DNS.cc b/iocore/dns/DNS.cc
index 986d16b..5d4f91a 100644
--- a/iocore/dns/DNS.cc
+++ b/iocore/dns/DNS.cc
@@ -1231,7 +1231,7 @@ DNSEntry::mainEvent(int event, Event *e)
     } else {
       Debug("dns", "adding first to collapsing queue");
       dnsH->entries.enqueue(this);
-      write_dns(dnsH);
+      dnsProcessor.thread->schedule_imm(dnsH);
     }
     return EVENT_DONE;
   }