aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 587000de..72ba708a 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -333,7 +333,7 @@ MHD_ip_addr_to_key (const struct sockaddr *addr,
333 if (AF_INET == addr->sa_family) 333 if (AF_INET == addr->sa_family)
334 { 334 {
335 const struct sockaddr_in *addr4 = (const struct sockaddr_in *) addr; 335 const struct sockaddr_in *addr4 = (const struct sockaddr_in *) addr;
336 mhd_assert (sizeof (struct sockaddr_in) <= addrlen); 336 mhd_assert (sizeof (struct sockaddr_in) <= (size_t) addrlen);
337 337
338 key->family = AF_INET; 338 key->family = AF_INET;
339 memcpy (&key->addr.ipv4, 339 memcpy (&key->addr.ipv4,
@@ -347,7 +347,7 @@ MHD_ip_addr_to_key (const struct sockaddr *addr,
347 if (AF_INET6 == addr->sa_family) 347 if (AF_INET6 == addr->sa_family)
348 { 348 {
349 const struct sockaddr_in6 *addr6 = (const struct sockaddr_in6 *) addr; 349 const struct sockaddr_in6 *addr6 = (const struct sockaddr_in6 *) addr;
350 mhd_assert (sizeof (struct sockaddr_in6) <= addrlen); 350 mhd_assert (sizeof (struct sockaddr_in6) <= (size_t) addrlen);
351 351
352 key->family = AF_INET6; 352 key->family = AF_INET6;
353 memcpy (&key->addr.ipv6, 353 memcpy (&key->addr.ipv6,
@@ -3437,7 +3437,7 @@ MHD_add_connection (struct MHD_Daemon *daemon,
3437 { 3437 {
3438 if (AF_INET == addr->sa_family) 3438 if (AF_INET == addr->sa_family)
3439 { 3439 {
3440 if (sizeof(struct sockaddr_in) > addrlen) 3440 if (sizeof(struct sockaddr_in) > (size_t) addrlen)
3441 { 3441 {
3442#ifdef HAVE_MESSAGES 3442#ifdef HAVE_MESSAGES
3443 MHD_DLOG (daemon, 3443 MHD_DLOG (daemon,
@@ -3450,7 +3450,7 @@ MHD_add_connection (struct MHD_Daemon *daemon,
3450#ifdef HAVE_INET6 3450#ifdef HAVE_INET6
3451 if (AF_INET6 == addr->sa_family) 3451 if (AF_INET6 == addr->sa_family)
3452 { 3452 {
3453 if (sizeof(struct sockaddr_in6) > addrlen) 3453 if (sizeof(struct sockaddr_in6) > (size_t) addrlen)
3454 { 3454 {
3455#ifdef HAVE_MESSAGES 3455#ifdef HAVE_MESSAGES
3456 MHD_DLOG (daemon, 3456 MHD_DLOG (daemon,