From cabba9343c8bd99e4aea66aa1e0ec7d93aa18a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20B=C3=ADlka?= Date: Sun, 13 Oct 2013 23:03:28 +0200 Subject: Correctly copy resolver address. Fixes bug #13028. --- resolv/res_send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resolv') diff --git a/resolv/res_send.c b/resolv/res_send.c index 5a73696..7f2e85f 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) -- cgit v1.1