From 5f14fdc5d9d1dfa4b3915fb4fffebfb9f28aeba2 Mon Sep 17 00:00:00 2001 From: Eugene Medvedev Date: Wed, 21 Jun 2023 09:40:44 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Ack,=20that=20was=20embarrassing?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index cecf3b2..8928037 100644 --- a/main.go +++ b/main.go @@ -314,7 +314,12 @@ func main() { check(err, "Could not assemble a sig block, something is very weird.") // The actual sig block is compressed with zlib to save space. - compressedSig, _ := compress(buf) + var compressedSig []byte + if uncSig { + compressedSig = buf + } else { + compressedSig, _ = compress(buf) + } sigBlock := append([]byte(sigHeader), compressedSig...)