This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ #13028] Resolver sometimes fails with option rotate.
- From: Andreas Jaeger <aj at suse dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>, libc-alpha at sourceware dot org
- Date: Sun, 13 Oct 2013 19:19:31 +0200
- Subject: Re: [PATCH][BZ #13028] Resolver sometimes fails with option rotate.
- Authentication-results: sourceware.org; auth=none
- References: <20131012121657 dot GA22181 at domone dot podge>
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