]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2000-05-12 Andreas Jaeger <aj@suse.de>
authorAndreas Jaeger <aj@suse.de>
Fri, 12 May 2000 13:39:13 +0000 (13:39 +0000)
committerAndreas Jaeger <aj@suse.de>
Fri, 12 May 2000 13:39:13 +0000 (13:39 +0000)
* inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
Reported by tmoestl@gmx.net, closes PR libc/1732.

inet/netinet/in.h

index 3dea9263204c5d9a728dd6b538bd426e475b50c8..7a53e703b938f32934678f8a613b11c424a27f5b 100644 (file)
@@ -283,8 +283,8 @@ extern uint16_t htons __P ((uint16_t __hostshort));
 
 #define IN6_ARE_ADDR_EQUAL(a,b) \
        ((((uint32_t *) (a))[0] == ((uint32_t *) (b))[0]) && \
-        (((uint32_t *) (a))[1] == ((uint32_t *) (b))[2]) && \
-        (((uint32_t *) (a))[2] == ((uint32_t *) (b))[1]) && \
+        (((uint32_t *) (a))[1] == ((uint32_t *) (b))[1]) && \
+        (((uint32_t *) (a))[2] == ((uint32_t *) (b))[2]) && \
         (((uint32_t *) (a))[3] == ((uint32_t *) (b))[3]))
 
 /* Bind socket to a privileged IP port.  */