mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.3'
* PHP-8.3: Fix uninitialized memory in network.c
This commit is contained in:
commit
32fe9bc430
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue