summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-20 14:40:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-20 14:40:14 +0000
commitaef3131e92817285024a38b9669fec1f64a3088d (patch)
treee0c37d096b826ce30ff4e11722d748f5a8cb30e1
parent342fce97af208c84ab6297e334a97af08a23b059 (diff)
downloadgnurl-aef3131e92817285024a38b9669fec1f64a3088d.tar.gz
gnurl-aef3131e92817285024a38b9669fec1f64a3088d.tar.bz2
gnurl-aef3131e92817285024a38b9669fec1f64a3088d.zip
Craig Markwardt made the "struct hostent_data" get cleared too, as is
needed on Tru64 (or something).
-rw-r--r--lib/ftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 28263eb2f..5008d920e 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -880,9 +880,11 @@ ftp_pasv_verbose(struct connectdata *conn,
/* Bjorn Reese (November 28 2001):
The Tru64 man page on gethostbyaddr_r() says that
the hostent struct must be filled with zeroes before the call to
- gethostbyaddr_r(). */
+ gethostbyaddr_r().
- memset(hostent_buf, 0, sizeof(struct hostent));
+ ... as must be struct hostent_data Craig Markwardt 19 Sep 2002. */
+
+ memset(hostent_buf, 0, sizeof(struct hostent)+sizeof(struct hostent_data));
if(gethostbyaddr_r((char *) &address,
sizeof(address), AF_INET,