mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3'
* PHP-8.3: Fix uninitialized memory in network.c
This commit is contained in:
@@ -842,7 +842,7 @@ php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short
|
||||
#ifdef HAVE_IPV6
|
||||
struct sockaddr_in6 in6;
|
||||
#endif
|
||||
} local_address;
|
||||
} local_address = {0};
|
||||
int local_address_len = 0;
|
||||
|
||||
if (sa->sa_family == AF_INET) {
|
||||
@@ -850,7 +850,6 @@ php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short
|
||||
local_address_len = sizeof(struct sockaddr_in);
|
||||
local_address.in4.sin_family = sa->sa_family;
|
||||
local_address.in4.sin_port = htons(bindport);
|
||||
memset(&(local_address.in4.sin_zero), 0, sizeof(local_address.in4.sin_zero));
|
||||
}
|
||||
}
|
||||
#ifdef HAVE_IPV6
|
||||
|
||||
Reference in New Issue
Block a user