Browse Source

Correctly propagate error in AuthenticationReader readBuffer

Shelikhoo 1 year ago
parent
commit
87affb11a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      common/crypto/auth.go

+ 1 - 1
common/crypto/auth.go

@@ -181,7 +181,7 @@ func (r *AuthenticationReader) readInternal(soft bool, mb *buf.MultiBuffer) erro
 	if size <= buf.Size {
 	if size <= buf.Size {
 		b, err := r.readBuffer(effectiveSize, int32(padding))
 		b, err := r.readBuffer(effectiveSize, int32(padding))
 		if err != nil {
 		if err != nil {
-			return nil
+			return err
 		}
 		}
 		*mb = append(*mb, b)
 		*mb = append(*mb, b)
 		return nil
 		return nil