This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH][BZ #13028] Resolver sometimes fails with option rotate.
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: libc-alpha at sourceware dot org
- Date: Sat, 12 Oct 2013 14:16:57 +0200
- Subject: [PATCH][BZ #13028] Resolver sometimes fails with option rotate.
- Authentication-results: sourceware.org; auth=none
Hi, this bug is one character typo fix yet it sits for two years and was
twice reported as duplicate.
OK to commit this?
2011-07-26 Aurelien Jarno <aurelien@aurel32.net>
* res_send.c(__libc_res_nsend): Correctly copy the nameserver
address.
diff --git a/resolv/res_send.c b/resolv/res_send.c
index a001c1e..51ddf38 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -441,7 +441,7 @@ __libc_res_nsend(res_state statp, const u_char *buf,
int buflen,
malloc(sizeof (struct
sockaddr_in6));
if (EXT(statp).nsaddrs[n] != NULL) {
memset (mempcpy(EXT(statp).nsaddrs[n],
- &statp->nsaddr_list[n],
+ &statp->nsaddr_list[ns],
sizeof (struct
sockaddr_in)),
'\0',
sizeof (struct sockaddr_in6)