Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/hosts.c
diff options
context:
space:
mode:
authorMark R Bannister <dbis@proseconsulting.co.uk>2015-01-12 18:26:19 +0100
committerArthur de Jong <arthur@arthurdejong.org>2015-01-19 23:03:23 +0100
commited8b312f0968ce4fd9059b0ebb52d993cf3cdf36 (patch)
tree59e8c59148b1c770903410f5eb8f81f5695eeb58 /nss/hosts.c
parent8b3305730e2989d4a57157306e287f81640f50b8 (diff)
Fix uninitialised variable
This fixes a bug in the NSS library when encountering IPv6 addresses in the hosts map.
Diffstat (limited to 'nss/hosts.c')
-rw-r--r--nss/hosts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/hosts.c b/nss/hosts.c
index acbdb1e..539b74a 100644
--- a/nss/hosts.c
+++ b/nss/hosts.c
@@ -99,7 +99,7 @@ static nss_status_t read_one_hostent(TFILE *fp, struct hostent *result,
}
else
{
- SKIP(fp, tmpint32);
+ SKIP(fp, tmp2int32);
}
}
/* null-terminate address list */