From 47e57bfab40ba681edf47e136474fe30db2dab73 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 12 Oct 2010 13:28:12 +1100 Subject: - (djm) [canohost.c] Zero a4 instead of addr to better match type. bz#1825, reported by foo AT mailinator.com --- canohost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'canohost.c') diff --git a/canohost.c b/canohost.c index ef94d915..dabd8a31 100644 --- a/canohost.c +++ b/canohost.c @@ -199,7 +199,7 @@ ipv64_normalise_mapped(struct sockaddr_storage *addr, socklen_t *len) memcpy(&inaddr, ((char *)&a6->sin6_addr) + 12, sizeof(inaddr)); port = a6->sin6_port; - memset(addr, 0, sizeof(*a4)); + bzero(a4, sizeof(*a4)); a4->sin_family = AF_INET; *len = sizeof(*a4); -- cgit v1.2.3