From 773a26bb22fbe5ae92544f734b9b01ae3cbf1bdf Mon Sep 17 00:00:00 2001 From: Andrew Skalski Date: Tue, 21 Sep 1999 23:34:45 +0000 Subject: [PATCH] added missing "addr.sin_family = AF_INET" to socket routines --- ext/ftp/ftp.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.50.1