lib/upgrade: Use strings.Reader instead of bytes.Buffer

This commit is contained in:
greatroar 2021-11-07 20:05:18 +01:00 committed by Jakob Borg
parent ae70046b49
commit 286a25ae49
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ func verifyUpgrade(archiveName, tempName string, sig []byte) error {
// multireader. This ensures that it is not only a bonafide syncthing
// binary, but it is also of exactly the platform and version we expect.
mr := io.MultiReader(bytes.NewBufferString(archiveName+"\n"), fd)
mr := io.MultiReader(strings.NewReader(archiveName+"\n"), fd)
err = signature.Verify(SigningKey, sig, mr)
fd.Close()