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

Andreas Jaeger aj@suse.com
Sun Oct 13 17:19:00 GMT 2013


On 10/12/2013 02:16 PM, Ondřej Bílka wrote:
> Hi, this bug is one character typo fix yet it sits for two years and was
> twice reported as duplicate.
> 
> OK to commit this?

Yes, thanks,

Andreas

> 
> 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)
> 


-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



More information about the Libc-alpha mailing list