From f400d5f394a258dee58fb56420acd65e22503761 Mon Sep 17 00:00:00 2001 From: linuxdaemon Date: Mon, 14 Jan 2019 05:48:45 -0600 Subject: Redo OnSetEndPoint logic to fix duplicate clones (#1549). --- src/modules/m_haproxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_haproxy.cpp') 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) -- cgit v1.3.1-10-gc9f91