From: DrDaveD Date: Sun, 3 Sep 2017 04:17:08 +0000 (-0500) Subject: Bug 4767: SMP breaks IPv6 SNMP and cache manager queries X-Git-Tag: SQUID_4_0_22~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=652b9d0decb89513ef28baf034f7f99b37879641;p=thirdparty%2Fsquid.git Bug 4767: SMP breaks IPv6 SNMP and cache manager queries --- diff --git a/src/ipc/UdsOp.cc b/src/ipc/UdsOp.cc index 7a495e2fb4..306c6c98d5 100644 --- a/src/ipc/UdsOp.cc +++ b/src/ipc/UdsOp.cc @@ -193,7 +193,7 @@ void Ipc::SendMessage(const String& toAddress, const TypedMsgHdr &message) const Comm::ConnectionPointer & Ipc::ImportFdIntoComm(const Comm::ConnectionPointer &conn, int socktype, int protocol, Ipc::FdNoteId noteId) { - struct sockaddr_in addr; + struct sockaddr_storage addr; socklen_t len = sizeof(addr); if (getsockname(conn->fd, reinterpret_cast(&addr), &len) == 0) { conn->remote = addr;