]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix reading the server path for UNIX sockets.
authorPeter Powell <petpow@saberuk.com>
Thu, 10 Jan 2019 19:14:17 +0000 (19:14 +0000)
committerPeter Powell <petpow@saberuk.com>
Thu, 10 Jan 2019 19:14:17 +0000 (19:14 +0000)
src/modules/m_haproxy.cpp

index c5b7dddd8928cdbb05e481923b30d6f8dc55ddbe..f61a39fddadd72821ea2e73aad5aafb119f43128 100644 (file)
@@ -256,7 +256,7 @@ 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;
                                }