1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/sockets: socket_create_listen clearing socket data before binding.

Close GH-13855
This commit is contained in:
David Carlier
2024-03-31 16:23:37 +01:00
parent 5ed5d37f25
commit ba4c82fd80

View File

@@ -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