From 3a8f76e33718d008f8917e6e1ed4595d5fa162c9 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Thu, 18 Jan 2018 22:57:20 +0100 Subject: [PATCH] Fixed a problem with writing the wrong (empty) sha256 hash in the autoupdater manifest. --- Duplicati/Library/AutoUpdater/UpdaterManager.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Duplicati/Library/AutoUpdater/UpdaterManager.cs b/Duplicati/Library/AutoUpdater/UpdaterManager.cs index dc082933c..dddee284f 100644 --- a/Duplicati/Library/AutoUpdater/UpdaterManager.cs +++ b/Duplicati/Library/AutoUpdater/UpdaterManager.cs @@ -813,9 +813,12 @@ namespace Duplicati.Library.AutoUpdater } } - archive_temp.Position = 0; remoteManifest.CompressedSize = archive_temp.Length; + + archive_temp.Position = 0; remoteManifest.MD5 = computeStreamMD5(archive_temp); + + archive_temp.Position = 0; remoteManifest.SHA256 = computeStreamSHA256(archive_temp); } System.IO.File.Move(archive_temp_file, System.IO.Path.Combine(outputfolder, "package.zip"));