summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-05-12 13:39:13 +0000
committerAndreas Jaeger <aj@suse.de>2000-05-12 13:39:13 +0000
commitdb157c079c7c82f1d472825a3d092cf10cad16c0 (patch)
treec0694d9142b314afa2ef50d50b7f58f678e85e7f
parent3bca7711896141990c6c1e6093378086c783b4e7 (diff)
downloadglibc-db157c079c7c82f1d472825a3d092cf10cad16c0.tar.gz
2000-05-12 Andreas Jaeger <aj@suse.de>
* inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices. Reported by tmoestl@gmx.net, closes PR libc/1732.
-rw-r--r--inet/netinet/in.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index 3dea926320..7a53e703b9 100644
--- a/inet/netinet/in.h
+++ b/inet/netinet/in.h
@@ -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. */