summaryrefslogtreecommitdiffstats
path: root/lib/libftpio
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-07-02 11:11:17 +0000
committerume <ume@FreeBSD.org>2002-07-02 11:11:17 +0000
commit8530756499f8c558b6ab7577e18e02d8aaad8a08 (patch)
tree8dda2e8107bc333e6cdfeb694d953d92cc720b94 /lib/libftpio
parenteb16909ba9b7fb0a350f1401e02f918e89dd17ec (diff)
downloadFreeBSD-src-8530756499f8c558b6ab7577e18e02d8aaad8a08.zip
FreeBSD-src-8530756499f8c558b6ab7577e18e02d8aaad8a08.tar.gz
Cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attach
scope identifier). MFC after: 3 weeks
Diffstat (limited to 'lib/libftpio')
-rw-r--r--lib/libftpio/ftpio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libftpio/ftpio.c b/lib/libftpio/ftpio.c
index af2d0f0..313f42b 100644
--- a/lib/libftpio/ftpio.c
+++ b/lib/libftpio/ftpio.c
@@ -984,6 +984,7 @@ ftp_file_op(FTP_t ftp, char *operation, char *file, FILE **fp, char *mode, off_t
char *a;
char hname[INET6_ADDRSTRLEN];
+ sin.sin6.sin6_scope_id = 0;
if (getnameinfo((struct sockaddr *)&sin, sin.sin6.sin6_len,
hname, sizeof(hname),
NULL, 0, NI_NUMERICHOST) != 0) {
OpenPOWER on IntegriCloud