From 3a41d4afa5c06682b1d65cedebcfcfd9074ec8a6 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Tue, 28 Mar 2023 22:47:24 +0200 Subject: [PATCH] lib/model: Set enc. trailer size on pull (ref #8563, #8556) (#8839) In the original fix in #8563 I simply forgot this. Which meant #8556 wasn't actually fixed, as the trialer size would have been 0 (default), and thus we would have still sent the inflated size to encrypted peers. --- lib/model/sharedpullerstate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/model/sharedpullerstate.go b/lib/model/sharedpullerstate.go index 9a868a2fb..92598e562 100644 --- a/lib/model/sharedpullerstate.go +++ b/lib/model/sharedpullerstate.go @@ -357,6 +357,7 @@ func (s *sharedPullerState) finalizeEncrypted() error { return err } s.file.Size += trailerSize + s.file.EncryptionTrailerSize = int(trailerSize) return nil }