diff options
author | Florian Weimer <fweimer@redhat.com> | 2014-12-15 17:41:13 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2014-12-16 10:08:29 +0100 |
commit | 11e3417af6e354f1942c68a271ae51e892b2814d (patch) | |
tree | cd58a98bda7c6d4d9fba3ac559a2c757a3fae063 /resolv | |
parent | ae61fc7b33d9d99d2763c16de8275227dc9748ba (diff) | |
download | glibc-11e3417af6e354f1942c68a271ae51e892b2814d.zip glibc-11e3417af6e354f1942c68a271ae51e892b2814d.tar.gz glibc-11e3417af6e354f1942c68a271ae51e892b2814d.tar.bz2 |
Avoid infinite loop in nss_dns getnetbyname [BZ #17630]
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/nss_dns/dns-network.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/nss_dns/dns-network.c b/resolv/nss_dns/dns-network.c index 0a77c8b..08cf0a6 100644 --- a/resolv/nss_dns/dns-network.c +++ b/resolv/nss_dns/dns-network.c @@ -398,8 +398,8 @@ getanswer_r (const querybuf *answer, int anslen, struct netent *result, case BYNAME: { - char **ap = result->n_aliases++; - while (*ap != NULL) + char **ap; + for (ap = result->n_aliases; *ap != NULL; ++ap) { /* Check each alias name for being of the forms: 4.3.2.1.in-addr.arpa = net 1.2.3.4 |