[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
resolved.

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

http://sourceware.org/git/?p=glibc.git;a=commit;f=resolv/res_send.c;h=3a85895fa3e15b8d53856161a4ba3950d44ea285

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
http://www.servage.net/
Neustadt 16 - DE-24939 Flensburg
janboysen@servage.net
*******************************
--- 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)),
 					'\0',
 					sizeof (struct sockaddr_in6)

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: