forked from rpms/glibc
c0564b95e0
- Correctly handle dns request where large numbers of A and AAA records are returned (#795498) - Fix nscd crash when group has many members (#788959)
14 lines
632 B
Diff
14 lines
632 B
Diff
diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c
|
|
index 01369f6..44ad04d 100644
|
|
--- a/resolv/nss_dns/dns-host.c
|
|
+++ b/resolv/nss_dns/dns-host.c
|
|
@@ -1219,7 +1219,7 @@ gaih_getanswer (const querybuf *answer1, int anslen1, const querybuf *answer2,
|
|
&first);
|
|
if ((status == NSS_STATUS_SUCCESS || status == NSS_STATUS_NOTFOUND
|
|
|| (status == NSS_STATUS_TRYAGAIN
|
|
- && (errno != ERANGE || *h_errnop != NO_RECOVERY)))
|
|
+ && (*errnop != ERANGE || *h_errnop == NO_RECOVERY)))
|
|
&& answer2 != NULL && anslen2 > 0)
|
|
{
|
|
enum nss_status status2 = gaih_getanswer_slice(answer2, anslen2, qname,
|