From 87affb11a52b118fe00d2091f810d22b8c016522 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Mon, 26 Feb 2024 10:14:35 +0000 Subject: [PATCH] Correctly propagate error in AuthenticationReader readBuffer --- common/crypto/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/crypto/auth.go b/common/crypto/auth.go index e837d809ea4..65bba5e26c3 100644 --- a/common/crypto/auth.go +++ b/common/crypto/auth.go @@ -181,7 +181,7 @@ func (r *AuthenticationReader) readInternal(soft bool, mb *buf.MultiBuffer) erro if size <= buf.Size { b, err := r.readBuffer(effectiveSize, int32(padding)) if err != nil { - return nil + return err } *mb = append(*mb, b) return nil