[PHP-DEV] cvs: /php3/functions ftp.c From: Andrew Skalski (askalski <email protected>)
Date: 09/21/99

askalski Tue Sep 21 19:35:02 1999 EDT

  Modified files:
    /php3/functions ftp.c
  Log:
  added missing "addr.sin_family = AF_INET" to socket routines
  
  
Index: php3/functions/ftp.c
diff -u php3/functions/ftp.c:1.5 php3/functions/ftp.c:1.6
--- php3/functions/ftp.c:1.5 Mon Sep 20 11:39:06 1999
+++ php3/functions/ftp.c Tue Sep 21 19:35:01 1999
@@ -78,6 +78,7 @@
 
         memset(&addr, 0, sizeof(addr));
         memcpy(&addr.sin_addr, he->h_addr, he->h_length);
+ addr.sin_family = AF_INET;
         addr.sin_port = port ? port : htons(21);
 
 
@@ -550,6 +551,7 @@
 
         /* bind to a local address */
         memset(&addr, 0, sizeof(addr));
+ addr.sin_family = AF_INET;
         addr.sin_addr.s_addr = INADDR_ANY;
         addr.sin_port = 0;
 

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>