[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#593571: libc6: RES_ROTATE resolver option broken?

I could confirm this bug and have spend some time in getting it debugged

I was able to trace the issue back to the following Upstream GIT commit:


The attached tiny patch solves the issue, but I don't know why the
commited changed that line...


Best regards,
Jan Boysen
- Head of system administration -

Servage.net Web Hosting
Neustadt 16 - DE-24939 Flensburg
--- res_send.c.orig	2011-03-09 15:15:29.000000000 +0000
+++ res_send.c	2011-03-09 15:15:51.000000000 +0000
@@ -445,7 +445,7 @@
 				    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)),
 					sizeof (struct sockaddr_in6)

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: