Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net - remove extra len check as per discussion on t...
details: https://anonhg.NetBSD.org/src/rev/f795905eecb2
branches: trunk
changeset: 755935:f795905eecb2
user: seanb <seanb%NetBSD.org@localhost>
date: Tue Jun 29 14:44:19 2010 +0000
description:
- remove extra len check as per discussion on tech-net.
diffstat:
lib/libc/net/getnameinfo.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r 577d81d374c4 -r f795905eecb2 lib/libc/net/getnameinfo.c
--- a/lib/libc/net/getnameinfo.c Tue Jun 29 14:10:35 2010 +0000
+++ b/lib/libc/net/getnameinfo.c Tue Jun 29 14:44:19 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getnameinfo.c,v 1.49 2010/01/29 22:26:48 is Exp $ */
+/* $NetBSD: getnameinfo.c,v 1.50 2010/06/29 14:44:19 seanb Exp $ */
/* $KAME: getnameinfo.c,v 1.45 2000/09/25 22:43:56 itojun Exp $ */
/*
@@ -47,7 +47,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getnameinfo.c,v 1.49 2010/01/29 22:26:48 is Exp $");
+__RCSID("$NetBSD: getnameinfo.c,v 1.50 2010/06/29 14:44:19 seanb Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -230,11 +230,6 @@
if (sa == NULL)
return EAI_FAIL;
-#ifdef BSD4_4
- if (sa->sa_len != salen)
- return EAI_FAIL;
-#endif
-
family = sa->sa_family;
for (i = 0; afdl[i].a_af; i++)
if (afdl[i].a_af == family) {
Home |
Main Index |
Thread Index |
Old Index