diff --git a/src/modules/module_socket.c b/src/modules/module_socket.c index 06b2f1d..b39360a 100644 --- a/src/modules/module_socket.c +++ b/src/modules/module_socket.c @@ -318,7 +318,7 @@ KRK_Method(socket,listen) { KRK_Method(socket,accept) { struct sockaddr_storage addr; - socklen_t addrlen; + socklen_t addrlen = sizeof(struct sockaddr_storage); int result = accept(self->sockfd, (struct sockaddr*)&addr, &addrlen);