diff options
| author | 2022-11-16 15:43:04 +0000 | |
|---|---|---|
| committer | 2022-11-16 15:43:04 +0000 | |
| commit | f01cae1a669051613a53008490a87738b1ddfd0e (patch) | |
| tree | 7bf81aae8ee5fc5be98eb44895120f109b0a3035 /src/socket.cpp | |
| parent | Fix 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.cpp | 3 |
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. |
