cvs: php4 /ext/sockets sockets.c

From: Date: Thu, 22 Mar 2001 13:16:58 +0000
Subject: cvs: php4 /ext/sockets sockets.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4774@lists.php.net to get a copy of this message
sniper Thu Mar 22 05:16:58 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: Fix bugs: #9920, #9190 Index: php4/ext/sockets/sockets.c diff -u php4/ext/sockets/sockets.c:1.32 php4/ext/sockets/sockets.c:1.33 --- php4/ext/sockets/sockets.c:1.32 Sun Feb 25 22:07:16 2001 +++ php4/ext/sockets/sockets.c Thu Mar 22 05:16:58 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sockets.c,v 1.32 2001/02/26 06:07:16 andi Exp $ */ +/* $Id: sockets.c,v 1.33 2001/03/22 13:16:58 sniper Exp $ */ #include "php.h" @@ -1130,6 +1130,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) {

« previous php.cvs (#4774) next »