mirror of
https://github.com/syncthing/syncthing.git
synced 2026-11-28 12:56:36 -08:00
lib/upgrade: Use strings.Reader instead of bytes.Buffer
This commit is contained in:
1 parent
ae70046b49
commit
286a25ae49
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user