mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Merge remote-tracking branch 'jigsaw/fix-17758'
This commit is contained in:
commit
a0398dd348
@ -108,6 +108,7 @@ dump_microdescriptor(int fd, microdesc_t *md, size_t *annotation_len_out)
|
||||
md->off = tor_fd_getpos(fd);
|
||||
written = write_all(fd, md->body, md->bodylen, 0);
|
||||
if (written != (ssize_t)md->bodylen) {
|
||||
written = written < 0 ? 0 : written;
|
||||
log_warn(LD_DIR,
|
||||
"Couldn't dump microdescriptor (wrote %ld out of %lu): %s",
|
||||
(long)written, (unsigned long)md->bodylen,
|
||||
|
Loading…
Reference in New Issue
Block a user