diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 5899ffaf..7f07a867 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -5432,11 +5432,11 @@ MHD_get_connection_info (struct MHD_Connection *connection, | |||
5432 | case MHD_CONNECTION_INFO_CLIENT_ADDRESS: | 5432 | case MHD_CONNECTION_INFO_CLIENT_ADDRESS: |
5433 | if (0 < connection->addr_len) | 5433 | if (0 < connection->addr_len) |
5434 | { | 5434 | { |
5435 | memset (&connection->connection_info_dummy.client_addr, 0, | 5435 | mhd_assert (sizeof (connection->addr) == \ |
5436 | sizeof (connection->connection_info_dummy.client_addr)); | 5436 | sizeof (connection->connection_info_dummy.client_addr)); |
5437 | memcpy (&connection->connection_info_dummy.client_addr, | 5437 | memcpy (&connection->connection_info_dummy.client_addr, |
5438 | connection->addr, | 5438 | &connection->addr, |
5439 | (size_t) connection->addr_len); | 5439 | sizeof(connection->addr)); |
5440 | return &connection->connection_info_dummy; | 5440 | return &connection->connection_info_dummy; |
5441 | } | 5441 | } |
5442 | return NULL; | 5442 | return NULL; |