mirror of
https://github.com/curl/curl.git
synced 2026-08-06 12:26:14 +03:00
Tor Arntsen's patch for working around a notorious bug in the AIX5
getaddrinfo() implementation.
This commit is contained in:
parent
7f679c3da3
commit
011929cf4d
1 changed files with 6 additions and 0 deletions
|
|
@ -1167,6 +1167,12 @@ CURLcode ftp_use_port(struct connectdata *conn)
|
|||
|
||||
portsock = -1;
|
||||
for (ai = res; ai; ai = ai->ai_next) {
|
||||
/*
|
||||
* Workaround for AIX5 getaddrinfo() problem (it doesn't set ai_socktype):
|
||||
*/
|
||||
if (ai->ai_socktype == 0)
|
||||
ai->ai_socktype = hints.ai_socktype;
|
||||
|
||||
portsock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
|
||||
if (portsock < 0)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue