[PATCH v3 08/12] gaih_inet: separate nss lookup loop into its own function
DJ Delorie
dj@redhat.com
Thu Mar 17 22:05:40 GMT 2022
Siddhesh Poyarekar <siddhesh@sourceware.org> writes:
> @@ -224,12 +229,14 @@ convert_hostent_to_gaih_addrtuple (const struct addrinfo *req,
> array = array->next;
> }
>
> - array = realloc (*result, (old + count) * sizeof (*array));
> + array = realloc (res->at, (old + count) * sizeof (*array));
>
> if (array == NULL)
> return false;
>
> - *result = array;
> + res->got_ipv6 = family == AF_INET6;
> + res->at = array;
> + res->free_at = true;
Ok.
Rest essentially unchanged from v2
LGTM
Reviewed-by: DJ Delorie <dj@redhat.com>
More information about the Libc-alpha
mailing list