mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
getaddrinfo: Eliminate another strdup call
This commit is contained in:
parent
808fd9e6fe
commit
363911ce13
@ -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 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* sysdeps/x86/cacheinfo.c (__x86_shared_non_temporal_threshold):
|
||||
|
@ -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