mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
This corrects VERBOSE PASV ftp transfers on AIX (and OSF1/Tru64)
Gerhard Herre reported this in bug report #536238
This commit is contained in:
parent
90b51831fd
commit
d560207ea1
@ -907,8 +907,10 @@ ftp_pasv_verbose(struct connectdata *conn,
|
|||||||
if(gethostbyaddr_r((char *) &address,
|
if(gethostbyaddr_r((char *) &address,
|
||||||
sizeof(address), AF_INET,
|
sizeof(address), AF_INET,
|
||||||
(struct hostent *)hostent_buf,
|
(struct hostent *)hostent_buf,
|
||||||
hostent_buf + sizeof(*answer)))
|
(struct hostent_data *)(hostent_buf + sizeof(*answer))))
|
||||||
answer=NULL;
|
answer=NULL;
|
||||||
|
else
|
||||||
|
answer=(struct hostent *)hostent_buf;
|
||||||
|
|
||||||
# endif
|
# endif
|
||||||
# ifdef HAVE_GETHOSTBYADDR_R_7
|
# ifdef HAVE_GETHOSTBYADDR_R_7
|
||||||
|
Loading…
Reference in New Issue
Block a user