From c70a8a3b92fb0488ef2ca1ae9e282c8b86ffa6d1 Mon Sep 17 00:00:00 2001 From: michen Date: Sun, 15 Oct 2006 16:43:04 -0700 Subject: 6477912 /etc/hosts name lookup sporadically fail on sparks based builds 6479036 nscd/nss_nisplus.so.1 core dumps when processing a getservent request 6481313 nscd drops core during DNS resolution 6481603 Installing SUNWCrnet had complains about nscd due to missing SUNWgss/SUNWgssc --- usr/src/lib/nsswitch/files/common/gethostent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/lib/nsswitch/files/common') diff --git a/usr/src/lib/nsswitch/files/common/gethostent.c b/usr/src/lib/nsswitch/files/common/gethostent.c index 37914ed4fa..f7cd99af44 100644 --- a/usr/src/lib/nsswitch/files/common/gethostent.c +++ b/usr/src/lib/nsswitch/files/common/gethostent.c @@ -511,6 +511,7 @@ __nss_files_XY_hostbyname(be, args, filter, type) ap, alen); buffer += alen; buflen -= alen; + args->returnlen += alen; alias_end += alen; } @@ -541,12 +542,11 @@ __nss_files_XY_hostbyname(be, args, filter, type) buffer += cplen; *buffer = '\0'; buflen -= cplen; + args->returnlen += cplen; if (alias_end == NULL) alias_end = buffer; } - args->returnlen += linelen; - /* * If this is the first one, save the canonical * name for future matches and continue. -- cgit v1.2.3