Skip to content

Commit ca8f563

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
2 parents 0c8a2d8 + e05c6a2 commit ca8f563

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/network.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,8 @@ PHPAPI int php_network_parse_network_address_with_port(const char *addr, zend_lo
515515
struct sockaddr_in6 *in6 = (struct sockaddr_in6*)sa;
516516
#endif
517517

518+
memset(sa, 0, sizeof(struct sockaddr));
519+
518520
if (*addr == '[') {
519521
colon = memchr(addr + 1, ']', addrlen-1);
520522
if (!colon || colon[1] != ':') {

0 commit comments

Comments
 (0)