]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4767: SMP breaks IPv6 SNMP and cache manager queries
authorDrDaveD <dwdgithub@drdykstra.us>
Sun, 3 Sep 2017 04:17:08 +0000 (23:17 -0500)
committerAmos Jeffries <yadij@users.noreply.github.com>
Thu, 15 Mar 2018 09:49:30 +0000 (22:49 +1300)
src/ipc/UdsOp.cc

index fb52418d7da4f8e611b9d3630edbde7064ff591e..78c4e30b7621d634b5557db8bfc066f3dcd4ea51 100644 (file)
@@ -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<sockaddr*>(&addr), &len) == 0) {
         conn->remote = addr;