cvs: php-src /ext/sockets sockets.c
| From: | Antony Dovgal | Date: | Thu, 01 Dec 2005 14:03:51 +0000 |
| Subject: | cvs: php-src /ext/sockets sockets.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-35563@lists.php.net to get a copy of this message | ||
tony2001 Thu Dec 1 09:03:51 2005 EDT
Modified files:
/php-src/ext/sockets sockets.c
Log:
MF51: fix #35490 (socket_sendto() unable to handle IPv6 addresses)
http://cvs.php.net/diff.php/php-src/ext/sockets/sockets.c?r1=1.172&r2=1.173&ty=u
Index: php-src/ext/sockets/sockets.c
diff -u php-src/ext/sockets/sockets.c:1.172 php-src/ext/sockets/sockets.c:1.173
--- php-src/ext/sockets/sockets.c:1.172 Thu Nov 3 10:01:31 2005
+++ php-src/ext/sockets/sockets.c Thu Dec 1 09:03:51 2005
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sockets.c,v 1.172 2005/11/03 15:01:31 mike Exp $ */
+/* $Id: sockets.c,v 1.173 2005/12/01 14:03:51 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1480,7 +1480,7 @@
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: