This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][BZ #13028] Resolver sometimes fails with option rotate.


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]