]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_haproxy.cpp
Fix broken linking over IPv4 on IPv6 capable systems.
[user/henk/code/inspircd.git] / src / modules / m_haproxy.cpp
index f61a39fddadd72821ea2e73aad5aafb119f43128..ee9079cbf22ed456f082b703950131dc8f856dec 100644 (file)
@@ -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)