mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.2' into PHP-7.3
This commit is contained in:
commit
e05c6a25f9
1 changed files with 2 additions and 0 deletions
|
@ -514,6 +514,8 @@ PHPAPI int php_network_parse_network_address_with_port(const char *addr, zend_lo
|
|||
struct sockaddr_in6 *in6 = (struct sockaddr_in6*)sa;
|
||||
#endif
|
||||
|
||||
memset(sa, 0, sizeof(struct sockaddr));
|
||||
|
||||
if (*addr == '[') {
|
||||
colon = memchr(addr + 1, ']', addrlen-1);
|
||||
if (!colon || colon[1] != ':') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue