From 1764d3dddef7f6c4c97155e2115dfe35da934417 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. --- 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 73ba905f9c32..8183398a8d32 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