aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r--src/microhttpd/response.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 2cca3c74..cce93bcb 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -429,7 +429,9 @@ MHD_create_response_from_fd_at_offset64 (uint64_t size,
429 (size > (uint64_t)INT32_MAX || offset > (uint64_t)INT32_MAX || (size + offset) >= (uint64_t)INT32_MAX)) 429 (size > (uint64_t)INT32_MAX || offset > (uint64_t)INT32_MAX || (size + offset) >= (uint64_t)INT32_MAX))
430 return NULL; 430 return NULL;
431#endif 431#endif
432 if ((int64_t)size < 0 || (int64_t)offset < 0 || (int64_t)(size + offset) < 0) 432 if ( ((int64_t)size < 0) ||
433 ((int64_t)offset < 0) ||
434 ((int64_t)(size + offset) < 0) )
433 return NULL; 435 return NULL;
434 436
435 response = MHD_create_response_from_callback (size, 437 response = MHD_create_response_from_callback (size,
@@ -477,8 +479,8 @@ MHD_create_response_from_fd (size_t size,
477 * @ingroup response 479 * @ingroup response
478 */ 480 */
479_MHD_EXTERN struct MHD_Response * 481_MHD_EXTERN struct MHD_Response *
480MHD_create_response_from_fd64(uint64_t size, 482MHD_create_response_from_fd64 (uint64_t size,
481 int fd) 483 int fd)
482{ 484{
483 return MHD_create_response_from_fd_at_offset64 (size, fd, 0); 485 return MHD_create_response_from_fd_at_offset64 (size, fd, 0);
484} 486}