]> git.ipfire.org Git - thirdparty/glibc.git/commit
getaddrinfo: Use &h_errno has the h_errno pointer
authorFlorian Weimer <fweimer@redhat.com>
Fri, 1 Sep 2017 06:57:07 +0000 (08:57 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 4 Sep 2017 09:44:21 +0000 (11:44 +0200)
commit701f7873da013fb19d9120317322cd78333e63c2
tree6f107827d904bb99d6f5907aa7d40dcd739d1849
parentbdd8422cfb1fe04cb20617495156fb232b00d23c
getaddrinfo: Use &h_errno has the h_errno pointer

This simplifies the code because it is not necessary to propagate the
temporary h_errno value to the thread-local variable.  It also increases
compatibility with NSS modules which update only one of the two places.

(cherry picked from commit 53250a21b81474ef4e78090a4a9a63d8471e1091)
ChangeLog
sysdeps/posix/getaddrinfo.c