]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[BZ #3369]
authorUlrich Drepper <drepper@redhat.com>
Mon, 16 Oct 2006 15:20:20 +0000 (15:20 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 16 Oct 2006 15:20:20 +0000 (15:20 +0000)
2006-10-16  Ulrich Drepper  <drepper@redhat.com>
[BZ #3369]
* sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
and 7.

ChangeLog
sysdeps/posix/getaddrinfo.c

index d2cf5fc51d5500bc249dd55ddb2851b26fb70f1f..3c9628c131be98b5e9832b0ad7f43235182bd30e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 9387e20db24bf55e1604267a0b18f8cd59559f4b..84a6293365be127c48d3f532233d2dd0f929baa8 100644 (file)
@@ -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?  */
     }