Skip to content

Commit 4da3dd5

Browse files
committed
MF51: fix #35490 (socket_sendto() unable to handle IPv6 addresses)
1 parent e97817e commit 4da3dd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sockets/sockets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ PHP_FUNCTION(socket_sendto)
14821482
RETURN_FALSE;
14831483
}
14841484

1485-
retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockaddr *) &sin, sizeof(sin));
1485+
retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockaddr *) &sin6, sizeof(sin6));
14861486
break;
14871487
#endif
14881488
default:

0 commit comments

Comments
 (0)