mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Fix mixing IPv4 and IPv6 name server in resolv.conf.
This commit is contained in:
committed by
Ulrich Drepper
parent
3ad3a4d059
commit
3a85895fa3
@@ -1,3 +1,8 @@
|
|||||||
|
2009-10-29 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
|
||||||
|
addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
|
||||||
|
|
||||||
2009-10-24 Joseph Myers <joseph@codesourcery.com>
|
2009-10-24 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
|
* sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
|
||||||
|
@@ -445,7 +445,7 @@ __libc_res_nsend(res_state statp, const u_char *buf, int buflen,
|
|||||||
malloc(sizeof (struct sockaddr_in6));
|
malloc(sizeof (struct sockaddr_in6));
|
||||||
if (EXT(statp).nsaddrs[n] != NULL) {
|
if (EXT(statp).nsaddrs[n] != NULL) {
|
||||||
memset (mempcpy(EXT(statp).nsaddrs[n],
|
memset (mempcpy(EXT(statp).nsaddrs[n],
|
||||||
&statp->nsaddr_list[ns],
|
&statp->nsaddr_list[n],
|
||||||
sizeof (struct sockaddr_in)),
|
sizeof (struct sockaddr_in)),
|
||||||
'\0',
|
'\0',
|
||||||
sizeof (struct sockaddr_in6)
|
sizeof (struct sockaddr_in6)
|
||||||
|
Reference in New Issue
Block a user