From 87ef07d5f4dd92b018b58662ab15a426328d1990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Tue, 5 Mar 2024 03:43:14 +0800 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 88de851e..0bc8e71d 100644 --- a/common/crypto/auth.go +++ b/common/crypto/auth.go @@ -178,7 +178,7 @@ func (r *AuthenticationReader) readInternal(soft bool, mb *buf.MultiBuffer) erro if size <= buf.Size { b, err := r.readBuffer(int32(size), int32(padding)) if err != nil { - return nil + return err } *mb = append(*mb, b) return nil