public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "aurelien at aurel32 dot net" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sources.redhat.com Subject: [Bug libc/11001] New: getaddrinfo if a nss plugin returns NSS_STATUS_UNAVAIL with herrno = TRY_AGAIN or NO_DATA Date: Mon, 23 Nov 2009 05:56:00 -0000 [thread overview] Message-ID: <20091123055547.11001.aurelien@aurel32.net> (raw) When a nss plugin returns NSS_STATUS_UNAVAIL with herrno = TRY_AGAIN or NO_DATA, the no_data variable in gaih_inet() is set to a non-zero value. This variable is used to signal to the rest of the gaih_inet procedure that no results are available, which ignores the results of the other plugins. This value should be reset upon success, like in the patch below: --- a/sysdeps/posix/getaddrinfo.c 2010-11-22 16:21:19.000000000 -0500 +++ b/sysdeps/posix/getaddrinfo.c 2009-11-22 16:28:26.000000000 -0500 @@ -715,7 +715,10 @@ gaih_inet (const char *name, const struc tmpbuflen, &rc, &herrno, NULL)); if (status == NSS_STATUS_SUCCESS) - break; + { + no_data = 0; + break; + } if (status != NSS_STATUS_TRYAGAIN || rc != ERANGE || herrno != NETDB_INTERNAL) { -- Summary: getaddrinfo if a nss plugin returns NSS_STATUS_UNAVAIL with herrno = TRY_AGAIN or NO_DATA Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: aurelien at aurel32 dot net CC: glibc-bugs at sources dot redhat dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=11001 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next reply other threads:[~2009-11-23 5:56 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-11-23 5:56 aurelien at aurel32 dot net [this message] 2010-04-09 12:51 ` [Bug libc/11001] " schwab at linux-m68k dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20091123055547.11001.aurelien@aurel32.net \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).