inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit d107093513680d67e4007b725499609a090c6ad3
parent c1817f32038a2ab6b94deaf2c3541dfcec3d0b7a
Author: linuxdaemon <linuxdaemon@snoonet.org>
Date:   Sat, 18 May 2019 15:27:15 -0500

m_haproxy: Initialize address length to 0

If the command is LOCAL, the address length isn't set before it is used
in ReadProxyAddress()

Diffstat:
Msrc/modules/m_haproxy.cpp | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/modules/m_haproxy.cpp b/src/modules/m_haproxy.cpp @@ -367,6 +367,7 @@ class HAProxyHook : public IOHookMiddle : IOHookMiddle(Prov) , sslapi(api) , state(HPS_WAITING_FOR_HEADER) + , address_length(0) { sock->AddIOHook(this); }