aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/lukemftp/src/fetch.c
diff options
context:
space:
mode:
authorMike Heffner <mikeh@FreeBSD.org>2002-04-26 16:51:03 +0000
committerMike Heffner <mikeh@FreeBSD.org>2002-04-26 16:51:03 +0000
commitccb3a87203714318b08be59f5a29f6e916a987ce (patch)
tree2d3553f3dcfec396b578932ea083969c027d2516 /contrib/lukemftp/src/fetch.c
parente25f7def37f0ffffe46ea434abca403a1fa6f30c (diff)
downloadsrc-ccb3a87203714318b08be59f5a29f6e916a987ce.tar.gz
src-ccb3a87203714318b08be59f5a29f6e916a987ce.zip
Import the FreeBSD differences Luke patched in lukemftp:vendor/tnftp/1.5.FIXESvendor/NetBSD/lukemftp/1.5.FIXES
*) Large file ASCII support *) -4/-6 options to force IPv4/IPv6 respectively Also, fix for buffer overflow on PASV from malicious server.
Notes
Notes: svn path=/vendor/lukemftp/dist/; revision=95504 svn path=/vendor/tnftp/1.5.FIXES/; revision=223303; tag=vendor/tnftp/1.5.FIXES
Diffstat (limited to 'contrib/lukemftp/src/fetch.c')
-rw-r--r--contrib/lukemftp/src/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lukemftp/src/fetch.c b/contrib/lukemftp/src/fetch.c
index dfb1c0cf3564..c38e90df90a4 100644
--- a/contrib/lukemftp/src/fetch.c
+++ b/contrib/lukemftp/src/fetch.c
@@ -617,7 +617,7 @@ fetch_url(const char *url, const char *proxyenv, char *proxyauth, char *wwwauth)
memset(&hints, 0, sizeof(hints));
hints.ai_flags = 0;
- hints.ai_family = AF_UNSPEC;
+ hints.ai_family = family;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = 0;
error = getaddrinfo(host, NULL, &hints, &res0);