summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-13 16:52:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-13 16:52:21 +0000
commit464ac7f07df757159681f71467c9df4d93bd3689 (patch)
tree4f11da2b8dbe1f35b10bdf6c2372183603a86050 /usr.sbin/httpd
parent8b8ad991e956afba943ac687d5ffdedeb1302e86 (diff)
copy correctly sized object, found by parfait; ok jsg
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r--usr.sbin/httpd/src/modules/standard/mod_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_access.c b/usr.sbin/httpd/src/modules/standard/mod_access.c
index 68f752648ee..d3705122536 100644
--- a/usr.sbin/httpd/src/modules/standard/mod_access.c
+++ b/usr.sbin/httpd/src/modules/standard/mod_access.c
@@ -486,7 +486,7 @@ static int find_allowdeny(request_rec *r, array_header *a, int method)
masked.s6_addr[10] = masked.s6_addr[11] = 0xff;
memcpy(&masked.s6_addr[12],
&((struct sockaddr_in *)&r->connection->remote_addr)->sin_addr.s_addr,
- sizeof(struct sockaddr_in));
+ sizeof(struct in_addr_t));
for (j = 0; j < sizeof(struct in6_addr); j++)
masked.s6_addr[j] &= ap[i].x.ip6.mask6.s6_addr[j];
if (memcmp(&masked, &ap[i].x.ip6.net6, sizeof(masked)) == 0)