From d107093513680d67e4007b725499609a090c6ad3 Mon Sep 17 00:00:00 2001 From: linuxdaemon Date: Sat, 18 May 2019 15:27:15 -0500 Subject: [PATCH] m_haproxy: Initialize address length to 0 If the command is LOCAL, the address length isn't set before it is used in ReadProxyAddress() --- src/modules/m_haproxy.cpp | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.39.5