Fix type on freebsd sendfile. Patch from navin seshadri. Fixes bug 2811991

svn:r1330
This commit is contained in:
Nick Mathewson 2009-06-25 15:22:36 +00:00
parent f901f9867c
commit 5aefb8a6d6

View File

@ -1763,7 +1763,7 @@ evbuffer_write_sendfile(struct evbuffer *buffer, evutil_socket_t fd,
return (len);
#elif defined(SENDFILE_IS_FREEBSD)
res = sendfile(info->fd, fd, chain->misalign, len, NULL, &len, 0);
res = sendfile(info->fd, fd, chain->misalign, chain->off, NULL, &len, 0);
if (res == -1 && !EVUTIL_ERR_RW_RETRIABLE(errno))
return (-1);