public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13651] New: resolver fails if result to first query fails but second succeeds
@ 2012-02-02  0:28 aurelien at aurel32 dot net
  2012-02-21  2:42 ` [Bug network/13651] " jsm28 at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: aurelien at aurel32 dot net @ 2012-02-02  0:28 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13651

             Bug #: 13651
           Summary: resolver fails if result to first query fails but
                    second succeeds
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: aurelien@aurel32.net
    Classification: Unclassified


Created attachment 6187
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6187
Patch to fix the issue

When using a nameserver which doesn't support IPv6, it might returns FORMERR or
NOTIMP, though it's not supposed to be the case according to the RFC. When this
corresponds to the first answer (which is usually the case as it's faster to
just return an error than doing a recursive query), resplen (that is the
returned value) ends up being 0 and resplen2 > 0. The tests in
__libc_res_nsearch() only look at resplen and totally ignore resplen2.

The attached patch fixes that by testing if resplen > 0 or resplen == 0 (that
is empty result, but no error) and resplen2 > 0.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug network/13651] resolver fails if result to first query fails but second succeeds
  2012-02-02  0:28 [Bug libc/13651] New: resolver fails if result to first query fails but second succeeds aurelien at aurel32 dot net
@ 2012-02-21  2:42 ` jsm28 at gcc dot gnu.org
  2012-06-21  7:55 ` mkubecek at suse dot cz
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-21  2:42 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13651

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |network

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug network/13651] resolver fails if result to first query fails but second succeeds
  2012-02-02  0:28 [Bug libc/13651] New: resolver fails if result to first query fails but second succeeds aurelien at aurel32 dot net
  2012-02-21  2:42 ` [Bug network/13651] " jsm28 at gcc dot gnu.org
@ 2012-06-21  7:55 ` mkubecek at suse dot cz
  2012-12-19 10:48 ` schwab@linux-m68k.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mkubecek at suse dot cz @ 2012-06-21  7:55 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13651

Michal Kubeček <mkubecek at suse dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mkubecek at suse dot cz

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug network/13651] resolver fails if result to first query fails but second succeeds
  2012-02-02  0:28 [Bug libc/13651] New: resolver fails if result to first query fails but second succeeds aurelien at aurel32 dot net
  2012-02-21  2:42 ` [Bug network/13651] " jsm28 at gcc dot gnu.org
  2012-06-21  7:55 ` mkubecek at suse dot cz
@ 2012-12-19 10:48 ` schwab@linux-m68k.org
  2013-10-08 16:40 ` neleai at seznam dot cz
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2012-12-19 10:48 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13651

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|drepper.fsp at gmail dot    |unassigned at sourceware
                   |com                         |dot org

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug network/13651] resolver fails if result to first query fails but second succeeds
  2012-02-02  0:28 [Bug libc/13651] New: resolver fails if result to first query fails but second succeeds aurelien at aurel32 dot net
                   ` (2 preceding siblings ...)
  2012-12-19 10:48 ` schwab@linux-m68k.org
@ 2013-10-08 16:40 ` neleai at seznam dot cz
  2014-04-16  9:11 ` siddhesh at redhat dot com
  2014-06-27  9:58 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: neleai at seznam dot cz @ 2013-10-08 16:40 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13651

Ondrej Bilka <neleai at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |neleai at seznam dot cz

--- Comment #1 from Ondrej Bilka <neleai at seznam dot cz> ---
Aurelien, did you send this patch to libc-alpha?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug network/13651] resolver fails if result to first query fails but second succeeds
  2012-02-02  0:28 [Bug libc/13651] New: resolver fails if result to first query fails but second succeeds aurelien at aurel32 dot net
                   ` (3 preceding siblings ...)
  2013-10-08 16:40 ` neleai at seznam dot cz
@ 2014-04-16  9:11 ` siddhesh at redhat dot com
  2014-06-27  9:58 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: siddhesh at redhat dot com @ 2014-04-16  9:11 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13651

Siddhesh Poyarekar <siddhesh at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |siddhesh at redhat dot com
         Resolution|---                         |DUPLICATE

--- Comment #2 from Siddhesh Poyarekar <siddhesh at redhat dot com> ---


*** This bug has been marked as a duplicate of bug 12994 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug network/13651] resolver fails if result to first query fails but second succeeds
  2012-02-02  0:28 [Bug libc/13651] New: resolver fails if result to first query fails but second succeeds aurelien at aurel32 dot net
                   ` (4 preceding siblings ...)
  2014-04-16  9:11 ` siddhesh at redhat dot com
@ 2014-06-27  9:58 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27  9:58 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13651

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-27  9:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-02  0:28 [Bug libc/13651] New: resolver fails if result to first query fails but second succeeds aurelien at aurel32 dot net
2012-02-21  2:42 ` [Bug network/13651] " jsm28 at gcc dot gnu.org
2012-06-21  7:55 ` mkubecek at suse dot cz
2012-12-19 10:48 ` schwab@linux-m68k.org
2013-10-08 16:40 ` neleai at seznam dot cz
2014-04-16  9:11 ` siddhesh at redhat dot com
2014-06-27  9:58 ` fweimer at redhat dot com

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).