summaryrefslogtreecommitdiff
path: root/ext/sockets
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-12-01 14:02:54 +0000
committerAntony Dovgal <tony2001@php.net>2005-12-01 14:02:54 +0000
commit7a652e397b480c5683333a223c4342c23241c27c (patch)
tree2e71e9561c142197fbd2cfeeec85b94d5b7742b9 /ext/sockets
parentf496bf9dda73969ee9ef8d113e9a5e6d02bd02f4 (diff)
downloadphp-git-7a652e397b480c5683333a223c4342c23241c27c.tar.gz
fix #35490 (socket_sendto() unable to handle IPv6 addresses)
Diffstat (limited to 'ext/sockets')
-rw-r--r--ext/sockets/sockets.c2
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: