diff options
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/ServerSocket.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx index d444933a0..8536774dc 100644 --- a/src/event/ServerSocket.cxx +++ b/src/event/ServerSocket.cxx @@ -304,7 +304,7 @@ ServerSocket::AddFD(int fd, GError **error_r) assert(fd >= 0); struct sockaddr_storage address; - socklen_t address_length; + socklen_t address_length = sizeof(address); if (getsockname(fd, (struct sockaddr *)&address, &address_length) < 0) { SetSocketError(error_r); |