diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index a833884b..3952431c 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -1102,7 +1102,7 @@ send_param_adapter (struct MHD_Connection *connection, | |||
1102 | if ( (connection->write_buffer_append_offset == | 1102 | if ( (connection->write_buffer_append_offset == |
1103 | connection->write_buffer_send_offset) && | 1103 | connection->write_buffer_send_offset) && |
1104 | (NULL != connection->response) && | 1104 | (NULL != connection->response) && |
1105 | (MHD_INVALID_SOCKET != (fd = connection->response->fd)) ) | 1105 | (-1 != (fd = connection->response->fd)) ) |
1106 | { | 1106 | { |
1107 | /* can use sendfile */ | 1107 | /* can use sendfile */ |
1108 | offset = (off_t) connection->response_write_position + connection->response->fd_off; | 1108 | offset = (off_t) connection->response_write_position + connection->response->fd_off; |