1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Revert previous workaround. This problem was fixed

by r290318.
This commit is contained in:
Hajimu UMEMOTO 2015-11-05 10:58:19 +00:00
parent c71150ce5d
commit 6f53a03868
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290388

View File

@ -527,10 +527,6 @@ routename(struct sockaddr *sa, int flags)
static char line[NI_MAXHOST]; static char line[NI_MAXHOST];
int error, f; int error, f;
/* XXX: sa->sa_len doesn't match sizeof(struct sockaddr_dl) */
if (sa->sa_family == AF_LINK)
sa->sa_len = sizeof(struct sockaddr_dl);
f = (flags) ? NI_NUMERICHOST : 0; f = (flags) ? NI_NUMERICHOST : 0;
error = getnameinfo(sa, sa->sa_len, line, sizeof(line), error = getnameinfo(sa, sa->sa_len, line, sizeof(line),
NULL, 0, f); NULL, 0, f);