]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_haproxy.cpp
m_check: rename the timestamp key to createdat.
[user/henk/code/inspircd.git] / src / modules / m_haproxy.cpp
index c5b7dddd8928cdbb05e481923b30d6f8dc55ddbe..ee9079cbf22ed456f082b703950131dc8f856dec 100644 (file)
@@ -256,12 +256,13 @@ class HAProxyHook : public IOHookMiddle
 
                                        case AF_UNIX:
                                                memcpy(client.un.sun_path, &recvq[0], 108);
-                                               memcpy(client.un.sun_path, &recvq[108], 108);
+                                               memcpy(server.un.sun_path, &recvq[108], 108);
                                                tlv_index = 216;
                                                break;
                                }
 
-                               sock->OnSetEndPoint(server, client);
+                               if (!sock->OnSetEndPoint(server, client))
+                                       return -1;
 
                                // Parse any available TLVs.
                                while (tlv_index < address_length)