public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rdenis at simphalempin dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sources.redhat.com Subject: [Bug libc/3369] New: RFC3484 Rule 7 sorting inconsistent Date: Mon, 16 Oct 2006 12:41:00 -0000 [thread overview] Message-ID: <20061016124120.3369.rdenis@simphalempin.com> (raw) In file libc/sysdeps/posix/getaddrinfo.c (rev 1.107), in function rfc3484_sort, implementation of "Rule 7" seems to be a logical no-op. Both ifs in the following excerpt are always false, since the conditions are essentially "a1 is temporary and a1 is not temporary": if (!(a1->source_addr_flags & in6ai_temporary) && (a1->source_addr_flags & in6ai_temporary)) return -1; if ((a1->source_addr_flags & in6ai_temporary) && !(a1->source_addr_flags & in6ai_temporary)) return -1; Probably a2 should be involved somewhere. -- Summary: RFC3484 Rule 7 sorting inconsistent Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: rdenis at simphalempin dot com CC: glibc-bugs at sources dot redhat dot com GCC build triplet: N/A GCC host triplet: N/A GCC target triplet: N/A http://sourceware.org/bugzilla/show_bug.cgi?id=3369 ------- 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:[~2006-10-16 12:41 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-10-16 12:41 rdenis at simphalempin dot com [this message] 2006-10-16 15:20 ` [Bug libc/3369] " drepper at redhat dot com 2007-01-12 15:08 ` cvs-commit at gcc dot gnu 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=20061016124120.3369.rdenis@simphalempin.com \ --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).