aboutsummaryrefslogtreecommitdiff
path: root/modules/haproxy.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-27 13:10:26 +0000
committerGravatar Sadie Powell2026-03-27 13:10:26 +0000
commitcbdcd051c63c4ff98dfb4ff45388e722f8d0a2de (patch)
treef2c61a977edce634fc28b9dead3d8bfa5782211c /modules/haproxy.cpp
parentMove CUList to be declared inside User. (diff)
Switch the extensible system to using shared pointers.
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 20159b89a..c6eff4a34 100644
--- a/modules/haproxy.cpp
+++ b/modules/haproxy.cpp
@@ -210,7 +210,7 @@ private:
// Create a fake ssl_cert for the user. Ideally we should use the user's
// TLS client certificate here but as of 2018-10-16 this is not forwarded
// by HAProxy.
- auto* cert = new ssl_cert();
+ auto cert = std::make_shared<ssl_cert>();
cert->error = "HAProxy does not forward client TLS certificates";
cert->invalid = true;
cert->revoked = true;