sniper Thu Mar 22 05:20:35 2001 EDT
Modified files: (Branch: PHP_4_0_5)
/php4/ext/sockets sockets.c
Log:
MFH
Index: php4/ext/sockets/sockets.c
diff -u php4/ext/sockets/sockets.c:1.32 php4/ext/sockets/sockets.c:1.32.2.1
--- php4/ext/sockets/sockets.c:1.32 Sun Feb 25 22:07:16 2001
+++ php4/ext/sockets/sockets.c Thu Mar 22 05:20:35 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sockets.c,v 1.32 2001/02/26 06:07:16 andi Exp $ */
+/* $Id: sockets.c,v 1.32.2.1 2001/03/22 13:20:35 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) {
--
PHP CVS 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]