version 1.35, 2000/05/03 19:50:41 |
version 1.35.2.1, 2000/10/06 21:16:13 |
|
|
error = getaddrinfo(host, pbuf, &hints, &res0); |
error = getaddrinfo(host, pbuf, &hints, &res0); |
} |
} |
if (error) { |
if (error) { |
warn(gai_strerror(error)); |
warn("%s", gai_strerror(error)); |
code = -1; |
code = -1; |
return (0); |
return (0); |
} |
} |
|
|
break; |
break; |
} |
} |
if (s < 0) { |
if (s < 0) { |
warn(cause); |
warn("%s", cause); |
code = -1; |
code = -1; |
freeaddrinfo(res0); |
freeaddrinfo(res0); |
return 0; |
return 0; |
|
|
* What we've got at this point is a string of comma separated |
* What we've got at this point is a string of comma separated |
* one-byte unsigned integer values, separated by commas. |
* one-byte unsigned integer values, separated by commas. |
*/ |
*/ |
|
if (!pasvcmd) |
|
goto bad; |
if (strcmp(pasvcmd, "PASV") == 0) { |
if (strcmp(pasvcmd, "PASV") == 0) { |
if (data_addr.su_family != AF_INET) { |
if (data_addr.su_family != AF_INET) { |
fputs( |
fputs( |