diff options
author | 2005-06-19 04:44:34 +0000 | |
---|---|---|
committer | 2005-06-19 04:44:34 +0000 | |
commit | 86ae710e15df08398d1cb08f8c1c727afbf49751 (patch) | |
tree | 5376c82e302854b58242235e28953dd4efe61f85 /lib/libc | |
parent | wrap a goto label in the proper #ifdef (diff) | |
download | wireguard-openbsd-86ae710e15df08398d1cb08f8c1c727afbf49751.tar.xz wireguard-openbsd-86ae710e15df08398d1cb08f8c1c727afbf49751.zip |
Remove a check about whether sa->sa_len is equal to salen from
getnameinfo(3). POSIX doesn't require this and it breaks code that
doesn't handle it.
"I think this is safe" millert@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/getnameinfo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/net/getnameinfo.c b/lib/libc/net/getnameinfo.c index 830a94279e1..4c8ee80fecd 100644 --- a/lib/libc/net/getnameinfo.c +++ b/lib/libc/net/getnameinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getnameinfo.c,v 1.30 2005/03/25 13:24:12 otto Exp $ */ +/* $OpenBSD: getnameinfo.c,v 1.31 2005/06/19 04:44:34 marcm Exp $ */ /* $KAME: getnameinfo.c,v 1.45 2000/09/25 22:43:56 itojun Exp $ */ /* @@ -110,9 +110,6 @@ getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, if (sa == NULL) return EAI_FAIL; - if (sa->sa_len != salen) - return EAI_FAIL; - family = sa->sa_family; for (i = 0; afdl[i].a_af; i++) if (afdl[i].a_af == family) { |