mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-11 12:50:58 +08:00
getaddrinfo: Eliminate another strdup call
(cherry picked from commit 363911ce13
)
This commit is contained in:
parent
8fbf5688ed
commit
b091ef7e2f
@ -1,3 +1,8 @@
|
||||
2017-06-03 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* sysdeps/posix/getaddrinfo.c (gaih_inet): Call __strdup instead
|
||||
of strdup.
|
||||
|
||||
2017-06-02 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* sysdeps/posix/getaddrinfo.c (gethosts): Eliminate another
|
||||
|
@ -732,7 +732,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
|
||||
(*pat)->name = NULL;
|
||||
else if (canonbuf == NULL)
|
||||
{
|
||||
canonbuf = strdup (air->canon);
|
||||
canonbuf = __strdup (air->canon);
|
||||
if (canonbuf == NULL)
|
||||
{
|
||||
result = -EAI_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user