Skip to content

Commit

Permalink
[BZ #3369]
Browse files Browse the repository at this point in the history
2006-10-16  Ulrich Drepper  <drepper@redhat.com>
	[BZ #3369]
	* sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
	and 7.
  • Loading branch information
Ulrich Drepper committed Oct 16, 2006
1 parent b8fed42 commit 4a85a8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2006-10-16 Ulrich Drepper <drepper@redhat.com>

[BZ #3369]
* sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
and 7.

2006-10-14 Ulrich Drepper <drepper@redhat.com>

* resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
Expand Down
10 changes: 5 additions & 5 deletions sysdeps/posix/getaddrinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1395,10 +1395,10 @@ rfc3484_sort (const void *p1, const void *p2)
{
if (!(a1->source_addr_flags & in6ai_homeaddress)
&& (a2->source_addr_flags & in6ai_homeaddress))
return -1;
return 1;
if ((a1->source_addr_flags & in6ai_homeaddress)
&& !(a2->source_addr_flags & in6ai_homeaddress))
return 1;
return -1;
}

/* Rule 5: Prefer matching label. */
Expand Down Expand Up @@ -1435,11 +1435,11 @@ rfc3484_sort (const void *p1, const void *p2)
if (a1->got_source_addr)
{
if (!(a1->source_addr_flags & in6ai_temporary)
&& (a1->source_addr_flags & in6ai_temporary))
&& (a2->source_addr_flags & in6ai_temporary))
return -1;
if ((a1->source_addr_flags & in6ai_temporary)
&& !(a1->source_addr_flags & in6ai_temporary))
return -1;
&& !(a2->source_addr_flags & in6ai_temporary))
return 1;

/* XXX Do we need to check anything beside temporary addresses? */
}
Expand Down

0 comments on commit 4a85a8e

Please sign in to comment.