ObjFW  Check-in [d98af41d84]

Overview
Comment:Fix of_socket_address_parse_ipv6()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d98af41d84bd25bd655ba0467347e97f41b04e525b712ea59f40a3f2a8435c10
User & Date: js on 2019-10-07 00:23:16
Other Links: manifest | tags
Context
2019-10-07
01:20
Make GCC happy again check-in: 0e1d2f7b84 user: js tags: trunk
00:23
Fix of_socket_address_parse_ipv6() check-in: d98af41d84 user: js tags: trunk
00:07
OFDNSResolver: Major refactor check-in: ee592cf603 user: js tags: trunk
Changes

Modified src/socket.m from [b18a1905f9] to [8c4ab8f800].

466
467
468
469
470
471
472
473
474


475
476
477
478
479
480
481
466
467
468
469
470
471
472


473
474
475
476
477
478
479
480
481







-
-
+
+







			addrIn6->sin6_addr.s6_addr[i++] = number;
		}

		i = 16;
		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;
			addrIn6->sin6_addr.s6_addr[--i] = number >> 8;
		}
	} else {
		OFArray OF_GENERIC(OFString *) *components =
		    [IPv6 componentsSeparatedByString: @":"];
		size_t i;

		if (components.count != 8)