Correctly propagate error in AuthenticationReader readBuffer

This commit is contained in:
Shelikhoo
2024-03-04 19:13:58 +00:00
parent 458db3954f
commit 87affb11a5
+1 -1
View File
@@ -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