diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-10-25 19:13:42 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-10-25 19:13:42 +0000 |
commit | 21cb7ca55c2fdd7e9aca6c7a80ae0d7ca4f6c7da (patch) | |
tree | 9bce2d28d077684abe0904fdfb3974e06ceb29f6 /sysdeps/posix | |
parent | 16d1b47b4f3f9ae13535ea7a2c02bd207c069d5c (diff) |
Updated to fedora-glibc-20061025T1857cvs/fedora-glibc-2_5_90-1
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 9387e20db2..84a6293365 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -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. */ @@ -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? */ } |