Skip to content

Commit

Permalink
Correctly propagate error in AuthenticationReader readBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokangwang committed Mar 4, 2024
1 parent 458db39 commit 87affb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/crypto/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87affb1

Please sign in to comment.