This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3369] New: RFC3484 Rule 7 sorting inconsistent
- From: "rdenis at simphalempin dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 16 Oct 2006 12:41:21 -0000
- Subject: [Bug libc/3369] New: RFC3484 Rule 7 sorting inconsistent
- Reply-to: sourceware-bugzilla at sourceware dot org
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.