cvs: /php4/ext/ftp ftp.c

From: Date: Tue, 21 Sep 1999 23:34:45 +0000
Subject: cvs: /php4/ext/ftp ftp.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-4780@lists.php.net to get a copy of this message
askalski Tue Sep 21 19:34:45 1999 EDT Modified files: /php4/ext/ftp ftp.c Log: added missing "addr.sin_family = AF_INET" to socket routines Index: php4/ext/ftp/ftp.c diff -u php4/ext/ftp/ftp.c:1.5 php4/ext/ftp/ftp.c:1.6 --- php4/ext/ftp/ftp.c:1.5 Mon Sep 20 10:10:25 1999 +++ php4/ext/ftp/ftp.c Tue Sep 21 19:34:45 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.version4 (#4780) next »