diff options
author | Marc Matteo <marcm@cvs.openbsd.org> | 2005-06-19 04:44:35 +0000 |
---|---|---|
committer | Marc Matteo <marcm@cvs.openbsd.org> | 2005-06-19 04:44:35 +0000 |
commit | d6d80e3d1a87695b6afdb77f389ff41b3c33230e (patch) | |
tree | 935c957997a4e31abff3ce3679017746fa1e30ae /lib/libc/net | |
parent | bc09daa3051d5be92f2f8acd4c023cc20a3d69f7 (diff) |
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/net')
-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) { |