diff options
| author | Antony Dovgal <tony2001@php.net> | 2005-12-01 14:02:54 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2005-12-01 14:02:54 +0000 |
| commit | 7a652e397b480c5683333a223c4342c23241c27c (patch) | |
| tree | 2e71e9561c142197fbd2cfeeec85b94d5b7742b9 /ext/sockets | |
| parent | f496bf9dda73969ee9ef8d113e9a5e6d02bd02f4 (diff) | |
| download | php-git-7a652e397b480c5683333a223c4342c23241c27c.tar.gz | |
fix #35490 (socket_sendto() unable to handle IPv6 addresses)
Diffstat (limited to 'ext/sockets')
| -rw-r--r-- | ext/sockets/sockets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 1711a4e235..d57efa7d03 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -1482,7 +1482,7 @@ PHP_FUNCTION(socket_sendto) RETURN_FALSE; } - retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockaddr *) &sin, sizeof(sin)); + retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockaddr *) &sin6, sizeof(sin6)); break; #endif default: |
