aboutsummaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-11-16 15:43:04 +0000
committerGravatar Sadie Powell2022-11-16 15:43:04 +0000
commitf01cae1a669051613a53008490a87738b1ddfd0e (patch)
tree7bf81aae8ee5fc5be98eb44895120f109b0a3035 /src/socket.cpp
parentFix the previous commit on Windows. (diff)
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.
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp3
1 files changed, 2 insertions, 1 deletions
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<uint8_t> so we can return the actual path here.
+ return "/*";
default:
// If we have reached this point then we have encountered a bug.