- (djm) [canohost.c] Zero a4 instead of addr to better match type.
   bz#1825, reported by foo AT mailinator.com
diff --git a/ChangeLog b/ChangeLog
index 001b8bc..0f6b2c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
 20101011
+ - (djm) [canohost.c] Zero a4 instead of addr to better match type.
+   bz#1825, reported by foo AT mailinator.com
+
+20101011
  - (djm) [configure.ac] Use = instead of == in shell tests. Patch from
    dr AT vasco.com
 
diff --git a/canohost.c b/canohost.c
index ef94d91..dabd8a3 100644
--- a/canohost.c
+++ b/canohost.c
@@ -199,7 +199,7 @@
 	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);