Skip to content

Commit ba4c82f

Browse files
committed
ext/sockets: socket_create_listen clearing socket data before binding.
Close GH-13855
1 parent 5ed5d37 commit ba4c82f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sockets/sockets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ int inet_ntoa_lock = 0;
219219

220220
static int php_open_listen_sock(php_socket *sock, int port, int backlog) /* {{{ */
221221
{
222-
struct sockaddr_in la;
222+
struct sockaddr_in la = {0};
223223
struct hostent *hp;
224224

225225
#ifndef PHP_WIN32

0 commit comments

Comments
 (0)