diff options
Diffstat (limited to 'usr/src/lib/nsswitch/files/common/gethostent.c')
-rw-r--r-- | usr/src/lib/nsswitch/files/common/gethostent.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. |