diff options
author | linuxdaemon <linuxdaemon@snoonet.org> | 2019-05-18 15:27:15 -0500 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-05-19 22:22:53 +0100 |
commit | d107093513680d67e4007b725499609a090c6ad3 (patch) | |
tree | 4e9f72435292ae36183f77b819f2ccd549130797 | |
parent | c1817f32038a2ab6b94deaf2c3541dfcec3d0b7a (diff) |
m_haproxy: Initialize address length to 0
If the command is LOCAL, the address length isn't set before it is used
in ReadProxyAddress()
-rw-r--r-- | src/modules/m_haproxy.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |