From: linuxdaemon Date: Sat, 18 May 2019 20:27:15 +0000 (-0500) Subject: m_haproxy: Initialize address length to 0 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=d107093;p=user%2Fhenk%2Fcode%2Finspircd.git m_haproxy: Initialize address length to 0 If the command is LOCAL, the address length isn't set before it is used in ReadProxyAddress() --- diff --git a/src/modules/m_haproxy.cpp b/src/modules/m_haproxy.cpp index ee9079cbf..57cb860c8 100644 --- 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); }