From f01cae1a669051613a53008490a87738b1ddfd0e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 16 Nov 2022 15:43:04 +0000 Subject: Fix cidr_range::str() on a UNIX socket returning an uninit value. This isn't an ideal fix but its the best we can do for now. In v4 we can change the struct internals to do this properly. --- src/socket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index a6bfcdb2e..46be75b70 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -415,7 +415,8 @@ std::string irc::sockets::cidr_mask::str() const break; case AF_UNIX: - return sa.un.sun_path; + // TODO: make bits a vector so we can return the actual path here. + return "/*"; default: // If we have reached this point then we have encountered a bug. -- cgit v1.3.1-10-gc9f91