]> 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>
Fri, 15 Sep 2023 23:53:24 +0000 (19:53 -0400)
commitb195fd86c616b147dad3a63498b79e0dedb4662b
tree2cf81b0678adaee92f09e63e0fc25f603caedf7a
parent01671608a3bddde369cdd42aed12e1c019b87158
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>
(cherry picked from commit d01411f6bc61429fc027c38827bf3103b48eef2e)
sysdeps/posix/getaddrinfo.c