Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/lib/libc/net Pull up revision 1.45 (requested by itojun...



details:   https://anonhg.NetBSD.org/src/rev/d1dbe41b0122
branches:  netbsd-1-6
changeset: 528092:d1dbe41b0122
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jun 26 11:07:57 2002 +0000

description:
Pull up revision 1.45 (requested by itojun in ticket #371):
do not pass uninitialized variable to nsdispatch().

diffstat:

 lib/libc/net/gethnamaddr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 322574e8711a -r d1dbe41b0122 lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c        Wed Jun 26 11:06:11 2002 +0000
+++ b/lib/libc/net/gethnamaddr.c        Wed Jun 26 11:07:57 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gethnamaddr.c,v 1.42 2002/05/18 00:07:28 itojun Exp $  */
+/*     $NetBSD: gethnamaddr.c,v 1.42.2.1 2002/06/26 11:07:57 lukem Exp $       */
 
 /*
  * ++Copyright++ 1985, 1988, 1993
@@ -61,7 +61,7 @@
 static char sccsid[] = "@(#)gethostnamadr.c    8.1 (Berkeley) 6/4/93";
 static char rcsid[] = "Id: gethnamaddr.c,v 8.21 1997/06/01 20:34:37 vixie Exp ";
 #else
-__RCSID("$NetBSD: gethnamaddr.c,v 1.42 2002/05/18 00:07:28 itojun Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.42.2.1 2002/06/26 11:07:57 lukem Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -657,7 +657,7 @@
        hp = (struct hostent *)NULL;
        h_errno = NETDB_INTERNAL;
        if (nsdispatch(&hp, dtab, NSDB_HOSTS, "gethostbyname",
-           default_dns_files, name, len, af) != NS_SUCCESS)
+           default_dns_files, name, strlen(name), af) != NS_SUCCESS)
                return (struct hostent *)NULL;
        h_errno = NETDB_SUCCESS;
        return (hp);



Home | Main Index | Thread Index | Old Index