mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
Cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attach
scope identifier). Approved by: des MFC after: 3 weeks
This commit is contained in:
parent
15e4dafc91
commit
f8fa093e82
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99253
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user