Skip to content

Commit

Permalink
MF51: fix #35490 (socket_sendto() unable to handle IPv6 addresses)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony2001 committed Dec 1, 2005
1 parent 4f906aa commit 14bdb93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/sockets/sockets.c
Expand Up @@ -1480,7 +1480,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:
Expand Down

0 comments on commit 14bdb93

Please sign in to comment.