cvs: /php3/functions ftp.c

From: Date: Tue, 21 Sep 1999 23:35:02 +0000
Subject: cvs: /php3/functions ftp.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-11173@lists.php.net to get a copy of this message
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;

« previous php.dev (#11173) next »