1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Craig Markwardt made the "struct hostent_data" get cleared too, as is

needed on Tru64 (or something).
This commit is contained in:
Daniel Stenberg 2002-09-20 14:40:14 +00:00
parent 342fce97af
commit aef3131e92

View File

@ -880,9 +880,11 @@ ftp_pasv_verbose(struct connectdata *conn,
/* Bjorn Reese (November 28 2001): /* Bjorn Reese (November 28 2001):
The Tru64 man page on gethostbyaddr_r() says that The Tru64 man page on gethostbyaddr_r() says that
the hostent struct must be filled with zeroes before the call to 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, if(gethostbyaddr_r((char *) &address,
sizeof(address), AF_INET, sizeof(address), AF_INET,