]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_haproxy: Initialize address length to 0
authorlinuxdaemon <linuxdaemon@snoonet.org>
Sat, 18 May 2019 20:27:15 +0000 (15:27 -0500)
committerPeter Powell <petpow@saberuk.com>
Sun, 19 May 2019 21:22:53 +0000 (22:22 +0100)
If the command is LOCAL, the address length isn't set before it is used
in ReadProxyAddress()

src/modules/m_haproxy.cpp

index ee9079cbf22ed456f082b703950131dc8f856dec..57cb860c834a4a31cbb7149ec09a2f596d9c8049 100644 (file)
@@ -367,6 +367,7 @@ class HAProxyHook : public IOHookMiddle
                : IOHookMiddle(Prov)
                , sslapi(api)
                , state(HPS_WAITING_FOR_HEADER)
+               , address_length(0)
        {
                sock->AddIOHook(this);
        }