Fix limiting by IPv6 address

This commit is contained in:
Evgeny Grin (Karlson2k) committed 2014-03-25 11:55:32 +00:00
1 parent 582da7168a
commit bb8f952bef
2 files changed
+5 -2

No files matched your search

+3
View File
@@ -1,3 +1,6 @@
Tue Mar 25 12:53:55 CET 2014
Fix limiting by IPv6 address. -EG
Tue Mar 25 09:06:13 CET 2014
Added more FD_SETSIZE checks.
Implemented FD_SETSIZE checks for W32. -EG
+2 -2
View File
@@ -184,7 +184,7 @@ struct MHD_IPCount
* IPv4 address.
*/
struct in_addr ipv4;
#if HAVE_IPV6
#if HAVE_INET6
/**
* IPv6 address.
*/
@@ -269,7 +269,7 @@ MHD_ip_addr_to_key (const struct sockaddr *addr,
return MHD_YES;
}
#if HAVE_IPV6
#if HAVE_INET6
/* IPv6 addresses */
if (sizeof (struct sockaddr_in6) == addrlen)
{