summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@heap.zone>2019-10-07 02:23:16 +0200
committerJonathan Schleifer <js@heap.zone>2019-10-07 02:23:16 +0200
commit7b7a848af6a1b7c1d9257e8b567f4a9db43ef31b (patch)
tree813ff6fa8f12df787023f8610c4283c0094a7ff0
parent97e121593865dfb7dbefc4716a4aaaa48384413c (diff)
Fix of_socket_address_parse_ipv6()
-rw-r--r--src/socket.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.m b/src/socket.m
index e68bb3e3..2d9754c6 100644
--- a/src/socket.m
+++ b/src/socket.m
@@ -470,8 +470,8 @@ of_socket_address_parse_ipv6(OFString *IPv6, uint16_t port)
for (OFString *component in rightComponents.reversedArray) {
uint16_t number = parseIPv6Component(component);
- addrIn6->sin6_addr.s6_addr[--i] = number >> 8;
addrIn6->sin6_addr.s6_addr[--i] = number;
+ addrIn6->sin6_addr.s6_addr[--i] = number >> 8;
}
} else {
OFArray OF_GENERIC(OFString *) *components =