mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 03:55:03 -05:00
Fred Noz fixed the gethostbyaddr_() call
This commit is contained in:
parent
a8f99e7924
commit
4e35b4387c
@ -777,13 +777,12 @@ CURLcode _ftp(struct connectdata *conn)
|
|||||||
extern int gethostbyaddr_r(char *addr, size_t len, int type,
|
extern int gethostbyaddr_r(char *addr, size_t len, int type,
|
||||||
struct hostent *htent, struct hostent_data *ht_data); */
|
struct hostent *htent, struct hostent_data *ht_data); */
|
||||||
|
|
||||||
/* Daniel: this implementation is really just guessing, please
|
/* Fred Noz helped me try this out, now it at least compiles! */
|
||||||
verify this before trusting this. I don't have access to any
|
|
||||||
such system to try out! */
|
|
||||||
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))
|
hostent_buf + sizeof(*answer)))
|
||||||
answer=NULL;
|
answer=NULL;
|
||||||
|
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user