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 2023/09/21 16:42:26 UTC
[trafficserver] branch 9.2.x updated: Fix use-after-free issue (#10399)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new 2f8bd20e22 Fix use-after-free issue (#10399)
2f8bd20e22 is described below
commit 2f8bd20e222eeaa7b72a559f8f95d4b22bc89dd9
Author: Susan Hinrichs <sh...@aviatrix.com>
AuthorDate: Thu Sep 14 11:58:11 2023 -0500
Fix use-after-free issue (#10399)
(cherry picked from commit 4fc1aac56961e8b76c353c317f58ea1687a5fc3b)
Conflicts:
proxy/http/HttpSM.cc
---
proxy/http/HttpSM.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 6b3ef19a28..ab269fbbdf 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -7346,7 +7346,11 @@ HttpSM::kill_this()
server_txn->transaction_done();
server_txn = nullptr;
}
+
if (ua_txn) {
+ if (ua_txn->get_server_session() != nullptr) {
+ ua_txn->attach_server_session(nullptr);
+ }
ua_txn->transaction_done();
}