diff options
author | 2009-12-13 16:52:20 +0000 | |
---|---|---|
committer | 2009-12-13 16:52:20 +0000 | |
commit | febfbe45d0285efec8e4f63d189d801a64de46df (patch) | |
tree | c7c82b0e8a4f6842c3350e1f22b2c314487e1499 | |
parent | use a more standard wording and add a list of supported controllers (diff) | |
download | wireguard-openbsd-febfbe45d0285efec8e4f63d189d801a64de46df.tar.xz wireguard-openbsd-febfbe45d0285efec8e4f63d189d801a64de46df.zip |
copy correctly sized object, found by parfait; ok jsg
-rw-r--r-- | usr.sbin/httpd/src/modules/standard/mod_access.c | 2 |
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) |