diff options
author | Andrew Skalski <askalski@php.net> | 1999-09-21 23:34:45 +0000 |
---|---|---|
committer | Andrew Skalski <askalski@php.net> | 1999-09-21 23:34:45 +0000 |
commit | 773a26bb22fbe5ae92544f734b9b01ae3cbf1bdf (patch) | |
tree | e92aae10fdfaccd024f035f5bc1ae349f79b1ae9 | |
parent | 9ea5e71a751d04686b51b744029d4705fb64e0ee (diff) | |
download | php-git-773a26bb22fbe5ae92544f734b9b01ae3cbf1bdf.tar.gz |
added missing "addr.sin_family = AF_INET" to socket routines
-rw-r--r-- | ext/ftp/ftp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 502022ad24..f8047408ca 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -78,6 +78,7 @@ ftp_open(const char *host, short port) 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 @@ ftp_port(ftpbuf_t *ftp) /* 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; |