From: Peter Powell Date: Thu, 10 Jan 2019 19:14:17 +0000 (+0000) Subject: Fix reading the server path for UNIX sockets. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=98e90d6d682c9795ab486d730d636d5c6ec1c817;p=user%2Fhenk%2Fcode%2Finspircd.git Fix reading the server path for UNIX sockets. --- diff --git a/src/modules/m_haproxy.cpp b/src/modules/m_haproxy.cpp index c5b7dddd8..f61a39fdd 100644 --- a/src/modules/m_haproxy.cpp +++ b/src/modules/m_haproxy.cpp @@ -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; }