From: Daniel Stenberg Date: Thu, 4 Apr 2002 06:07:56 +0000 (+0000) Subject: This corrects VERBOSE PASV ftp transfers on AIX (and OSF1/Tru64) X-Git-Tag: curl-7_9_6~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d560207ea183a051b86c9e01b3ec4c6490cde4e7;p=thirdparty%2Fcurl.git This corrects VERBOSE PASV ftp transfers on AIX (and OSF1/Tru64) Gerhard Herre reported this in bug report #536238 --- diff --git a/lib/ftp.c b/lib/ftp.c index efef6adde7..0f0a8b9ac6 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -907,8 +907,10 @@ ftp_pasv_verbose(struct connectdata *conn, if(gethostbyaddr_r((char *) &address, sizeof(address), AF_INET, (struct hostent *)hostent_buf, - hostent_buf + sizeof(*answer))) + (struct hostent_data *)(hostent_buf + sizeof(*answer)))) answer=NULL; + else + answer=(struct hostent *)hostent_buf; # endif # ifdef HAVE_GETHOSTBYADDR_R_7