diff options
| author | 2022-07-30 17:21:47 +0100 | |
|---|---|---|
| committer | 2022-07-30 19:15:41 +0100 | |
| commit | 3c455a8511f8c72552afb6ebe35a8e7c9b9af979 (patch) | |
| tree | 603c14aa8d8dfafb931cf3ca1b3503fdfc979528 /src/modules/m_haproxy.cpp | |
| parent | Add support for clearing the target of a dynamic_reference. (diff) | |
Modernize various minor legacy C++isms.
Diffstat (limited to 'src/modules/m_haproxy.cpp')
| -rw-r--r-- | src/modules/m_haproxy.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/m_haproxy.cpp b/src/modules/m_haproxy.cpp index db3da710b..393fb6297 100644 --- a/src/modules/m_haproxy.cpp +++ b/src/modules/m_haproxy.cpp @@ -136,7 +136,7 @@ class HAProxyHook final { private: // The length of the address section. - uint16_t address_length; + uint16_t address_length = 0; // The endpoint the client is connecting from. irc::sockets::sockaddrs client; @@ -151,7 +151,7 @@ private: UserCertificateAPI& sslapi; // The current state of the PROXY parser. - HAProxyState state; + HAProxyState state = HPS_WAITING_FOR_HEADER; size_t ReadProxyTLV(StreamSocket* sock, size_t start_index, uint16_t buffer_length) { @@ -379,9 +379,7 @@ private: public: HAProxyHook(std::shared_ptr<IOHookProvider> Prov, StreamSocket* sock, UserCertificateAPI& api) : IOHookMiddle(Prov) - , address_length(0) , sslapi(api) - , state(HPS_WAITING_FOR_HEADER) { sock->AddIOHook(this); } |
