mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix length calculation.
This commit is contained in:
parent
0f29dc52df
commit
4b7e26d006
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ send_test(int connect_socket, u_int32_t header_length, u_int32_t offset,
|
|||
|
||||
if (fstat(file_fd, &sb) < 0)
|
||||
err(1, "fstat");
|
||||
length = sb.st_size;
|
||||
length = sb.st_size - offset;
|
||||
}
|
||||
|
||||
if (off != length) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue