From: Andrew Skalski Date: Tue, 21 Sep 1999 23:34:45 +0000 (+0000) Subject: added missing "addr.sin_family = AF_INET" to socket routines X-Git-Tag: before-sapi-split~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=773a26bb22fbe5ae92544f734b9b01ae3cbf1bdf;p=php added missing "addr.sin_family = AF_INET" to socket routines --- 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;