]> git.ipfire.org Git - thirdparty/glibc.git/commit
gaih_inet: Simplify canon name resolution
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 7 Mar 2022 16:47:36 +0000 (22:17 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 22 Mar 2022 14:09:12 +0000 (19:39 +0530)
commitd01411f6bc61429fc027c38827bf3103b48eef2e
tree2cb78d02a6a38514955a5d6567be2ab7704b63a4
parent1c37b8022e8763fedbb3f79c02e05c6acfe5a215
gaih_inet: Simplify canon name resolution

Simplify logic for allocation of canon to remove the canonbuf variable;
canon now always points to an allocated block.  Also pull the canon name
set into a separate function.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: DJ Delorie <dj@redhat.com>
sysdeps/posix/getaddrinfo.c