lib: Correctly handle encrypted trailer size (fixes #8556) (#8563)

This commit is contained in:
Simon Frei
2023-03-10 14:14:14 +01:00
committed by GitHub
parent b53c1b9a04
commit da72df6ffc
6 changed files with 379 additions and 200 deletions
+1
View File
@@ -1251,6 +1251,7 @@ func (f *sendReceiveFolder) shortcutFile(file protocol.FileInfo, dbUpdateChan ch
}
defer fd.Close()
trailerSize, err := writeEncryptionTrailer(file, fd)
file.EncryptionTrailerSize = int(trailerSize)
if err != nil {
return err
}