summaryrefslogtreecommitdiffstats
path: root/canohost.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2010-10-12 04:28:12 +0200
committerDamien Miller <djm@mindrot.org>2010-10-12 04:28:12 +0200
commit47e57bfab40ba681edf47e136474fe30db2dab73 (patch)
treeec636cfec2e1c63335b06aa733cb54d3a33eefcb /canohost.c
parent - (djm) [configure.ac] Use = instead of == in shell tests. Patch from (diff)
downloadopenssh-47e57bfab40ba681edf47e136474fe30db2dab73.tar.xz
openssh-47e57bfab40ba681edf47e136474fe30db2dab73.zip
- (djm) [canohost.c] Zero a4 instead of addr to better match type.
bz#1825, reported by foo AT mailinator.com
Diffstat (limited to 'canohost.c')
-rw-r--r--canohost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/canohost.c b/canohost.c
index ef94d9155..dabd8a31a 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);