ID: 9920
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Sockets related
Assigned To: 
Comments:

Fixed in CVS. Thanks for the patch!

--Jani


Previous Comments:
---------------------------------------------------------------------------

[2001-03-22 08:06:34] [EMAIL PROTECTED]
patch is as easy as this:

diff -uNr php-4.0.4pl1/ext/sockets/sockets.c 
php-4.0.4pl1-patched/ext/sockets/sockets.c
--- php-4.0.4pl1/ext/sockets/sockets.c  Tue Dec 12 18:09:40 2000
+++ php-4.0.4pl1-patched/ext/sockets/sockets.c  Mon Jan 22 14:01:47 2001
@@ -1119,6 +1119,7 @@
        if (sock_type->sa_family == AF_UNIX) {
                struct sockaddr_un *sa = (struct sockaddr_un *) sock_type;
                memset(sa, 0, sizeof(sa_storage)); /* This is safe -> sock_type = 
&sa_storage -> sa = sock_type */
+               sa->sun_family = AF_UNIX;
                snprintf(sa->sun_path, 108, "%s", Z_STRVAL_PP(arg1));
                ret = bind(Z_LVAL_PP(arg0), (struct sockaddr *) sa, SUN_LEN(sa));
        } else if (sock_type->sa_family == AF_INET) {


---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9920&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to