aboutsummaryrefslogtreecommitdiffstats
path: root/modules/haproxy.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-14 07:38:40 +0000
committerGravatar Sadie Powell2026-03-14 07:39:49 +0000
commit13054387b49d90f6f0a8f431a72bb9006bda5813 (patch)
treef6dc2e0edfc2aa2fd29a13e910fcdc74df28748e /modules/haproxy.cpp
parentRewrite portparser and move to stringutils. (diff)
Fix a crash caused by weirdly casting a pointer to an I/O handler.
Diffstat (limited to 'modules/haproxy.cpp')
-rw-r--r--modules/haproxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/haproxy.cpp b/modules/haproxy.cpp
index 2c16094d3..20159b89a 100644
--- a/modules/haproxy.cpp
+++ b/modules/haproxy.cpp
@@ -218,7 +218,7 @@ private:
cert->unknownsigner = true;
// Extract the user for this socket and set their certificate.
- auto* luser = reinterpret_cast<LocalUserIO*>(sock)->user;
+ auto* luser = sock->GetData<LocalUserIO>()->user;
sslapi->SetCertificate(luser, cert);
return true;
}