From ba4c82fd8012d987abfb3e2efb43e0921e526b3d Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 31 Mar 2024 16:23:37 +0100 Subject: [PATCH] ext/sockets: socket_create_listen clearing socket data before binding. Close GH-13855 --- ext/sockets/sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 73ba905f9c3..8183398a8d3 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -219,7 +219,7 @@ int inet_ntoa_lock = 0; static int php_open_listen_sock(php_socket *sock, int port, int backlog) /* {{{ */ { - struct sockaddr_in la; + struct sockaddr_in la = {0}; struct hostent *hp; #ifndef PHP_WIN32