]> git.ipfire.org Git - thirdparty/glibc.git/commit
gaih_inet: Simplify service resolution
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 10 Feb 2022 07:57:11 +0000 (13:27 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 22 Mar 2022 14:09:16 +0000 (19:39 +0530)
commit8d6cf99f2fb81a097f9334c125e5c23604af1a98
tree6ab268de3e615339bea7ee2efd3517520972d689
parent300460460706ce3ffe29a7df8966e68323ec5bf1
gaih_inet: Simplify service resolution

Refactor the code to split out the service resolution code into a
separate function.  Allocate the service tuples array just once to the
size of the typeproto array, thus avoiding the unnecessary pointer
chasing and stack allocations.

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