diff options
author | ume <ume@FreeBSD.org> | 2002-07-02 11:09:02 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2002-07-02 11:09:02 +0000 |
commit | eb16909ba9b7fb0a350f1401e02f918e89dd17ec (patch) | |
tree | f24b277f9671025d1d0a8010cb4e5b8f87501fd4 /lib/libfetch | |
parent | ddbac8e31144c1b1d9d8af4ec593f0024421bb0b (diff) | |
download | FreeBSD-src-eb16909ba9b7fb0a350f1401e02f918e89dd17ec.zip FreeBSD-src-eb16909ba9b7fb0a350f1401e02f918e89dd17ec.tar.gz |
Cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attach
scope identifier).
Approved by: des
MFC after: 3 weeks
Diffstat (limited to 'lib/libfetch')
-rw-r--r-- | lib/libfetch/ftp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index e703a01..b08dd30 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -648,6 +648,7 @@ _ftp_transfer(conn_t *conn, const char *oper, const char *file, #define UC(b) (((int)b)&0xff) e = -1; sin6 = (struct sockaddr_in6 *)&sa; + sin6->sin6_scope_id = 0; if (getnameinfo((struct sockaddr *)&sa, sa.ss_len, hname, sizeof(hname), NULL, 0, NI_NUMERICHOST) == 0) { |