1 --- samba-4.17.0/lib/tsocket/tsocket_bsd.c 2022-08-08 07:15:39.152190400 +0000
2 +++ samba-4.17.0/lib/tsocket/tsocket_bsd.c.new 2022-09-17 05:56:02.043645009 +0000
8 + char *so_addr = NULL;
9 uint16_t s_port = default_port;
11 bool is_ipv6_by_squares = false;
13 /* IPv6 possibly with port - squares detected */
15 if (*port_sep == '\0') {
17 + so_addr = pl_sq + 1;
19 s_port = default_port;
22 s_port = (uint16_t)port;
26 + so_addr = pl_sq + 1;
29 } else if (pl_period != NULL && port_sep != NULL) {
32 s_port = (uint16_t)port;
38 /* Everything else, let tsocket_address_inet_from string() */
39 /* find parsing errors */
42 s_port = default_port;
46 ret = _tsocket_address_inet_from_strings(
47 - mem_ctx, fam, s_addr, s_port, _addr, location);
48 + mem_ctx, fam, so_addr, s_port, _addr, location);