aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_haproxy.cpp
diff options
context:
space:
mode:
authorGravatar linuxdaemon2019-01-14 05:48:45 -0600
committerGravatar Peter Powell2019-01-14 11:48:45 +0000
commitf400d5f394a258dee58fb56420acd65e22503761 (patch)
treeeaf405f6da42adad8e92535e0f9b3b72b275ab3e /src/modules/m_haproxy.cpp
parentAllow wildcards in <connect:dnsbl> (diff)
Redo OnSetEndPoint logic to fix duplicate clones (#1549).
Diffstat (limited to 'src/modules/m_haproxy.cpp')
-rw-r--r--src/modules/m_haproxy.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_haproxy.cpp b/src/modules/m_haproxy.cpp
index f61a39fdd..ee9079cbf 100644
--- a/src/modules/m_haproxy.cpp
+++ b/src/modules/m_haproxy.cpp
@@ -261,7 +261,8 @@ class HAProxyHook : public IOHookMiddle
break;
}
- sock->OnSetEndPoint(server, client);
+ if (!sock->OnSetEndPoint(server, client))
+ return -1;
// Parse any available TLVs.
while (tlv_index < address_length)