diff options
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r-- | src/daemon/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index efa8b018..23836168 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -746,7 +746,7 @@ send_param_adapter (struct MHD_Connection *connection, | |||
746 | { | 746 | { |
747 | /* can use sendfile */ | 747 | /* can use sendfile */ |
748 | offset = (off_t) connection->response_write_position + connection->response->fd_off; | 748 | offset = (off_t) connection->response_write_position + connection->response->fd_off; |
749 | left = connection->response->total_size - offset; | 749 | left = connection->response->total_size - connection->response_write_position; |
750 | if (left > SSIZE_MAX) | 750 | if (left > SSIZE_MAX) |
751 | left = SSIZE_MAX; /* cap at return value limit */ | 751 | left = SSIZE_MAX; /* cap at return value limit */ |
752 | ret = sendfile (connection->socket_fd, | 752 | ret = sendfile (connection->socket_fd, |