This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 43e0b5dad4 Fix PluginVC server connection cast (#13453)
43e0b5dad4 is described below
commit 43e0b5dad4ae77afb38f5d5f90bc34c3ae07421a
Author: Brian Neradt <[email protected]>
AuthorDate: Thu Jul 30 08:25:05 2026 -0500
Fix PluginVC server connection cast (#13453)
Plugin intercepts provide a PluginVC for the server connection, but
HttpSM treats it as a UnixNetVConnection. This invalid downcast can
trigger libc++ RTTI diagnostics and is undefined behavior.
This keeps the connection at its NetVConnection base type, which
provides both TLS service lookups needed at that point.
Fixes: #8105
---
src/proxy/http/HttpSM.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/proxy/http/HttpSM.cc b/src/proxy/http/HttpSM.cc
index 799f72b771..7672725253 100644
--- a/src/proxy/http/HttpSM.cc
+++ b/src/proxy/http/HttpSM.cc
@@ -6916,7 +6916,7 @@ HttpSM::attach_server_session()
server_entry->vc_type = HttpVC_t::SERVER_VC;
server_entry->vc_write_handler = &HttpSM::state_send_server_request_header;
- UnixNetVConnection *server_vc = static_cast<UnixNetVConnection
*>(server_txn->get_netvc());
+ NetVConnection *server_vc = server_txn->get_netvc();
// set flag for server session is SSL
if (server_vc->get_service<TLSBasicSupport>()) {