diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2018-04-17 18:13:53 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2018-04-17 18:13:53 +0100 |
commit | 2d8a38e1a098788c166dfd920cbcda4e7f9adf71 (patch) | |
tree | 1b7f64f6ad0577bc3ddd3b288f43e7bf4feb8c05 /libc/sysdeps/linux | |
parent | ad6c75c4710c9366f284dace3fc600346b70c9cb (diff) |
Revert "common/sendfile.c: bugfix can't support offset is NULL"
This reverts commit b00fd230ed0b49b9f23d829ad5d09859f34bb754.
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r-- | libc/sysdeps/linux/common/sendfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/sendfile.c b/libc/sysdeps/linux/common/sendfile.c index def98da46..af05ba4e7 100644 --- a/libc/sysdeps/linux/common/sendfile.c +++ b/libc/sysdeps/linux/common/sendfile.c @@ -40,7 +40,7 @@ ssize_t sendfile(int out_fd, int in_fd, __off_t *offset, size_t count) return -1; } - if ((int)offset < 0) { + if (offset == NULL || (int)offset < 0) { __set_errno(EFAULT); return -1; } |