]> granicus.if.org Git - php/commitdiff
fix #35490 (socket_sendto() unable to handle IPv6 addresses)
authorAntony Dovgal <tony2001@php.net>
Thu, 1 Dec 2005 14:02:54 +0000 (14:02 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 1 Dec 2005 14:02:54 +0000 (14:02 +0000)
NEWS
ext/sockets/sockets.c

diff --git a/NEWS b/NEWS
index 862b5117dace8722cba24c0e3b26cc5f6dad6819..60a8752607384f9c9e4f0301b974e17e5cefd4d9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,7 @@ PHP                                                                        NEWS
   connecting to 5.x server. (Andrey)
 - Fixed bug #35496 (Crash in mcrypt_generic()/mdecrypt_generic() without 
   proper init). (Ilia)
+- Fixed bug #35490 (socket_sendto() unable to handle IPv6 addresses). (Tony)
 - Fixed bug #35437 (Segfault or Invalid Opcode 137/1/4). (Dmitry)
 - Fixed bug #34729 (Crash in ZTS mode under Apache). (Dmitry, Zeev) 
 - Fixed bug #35470 (Assigning global using variable name from array doesn't
index 1711a4e2351726922e92d17a81eb0115a68e33d5..d57efa7d0312fa3bdd110ad105859456ee2de2f1 100644 (file)
@@ -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: