Skip to content

Commit 87affb1

Browse files
committed
Correctly propagate error in AuthenticationReader readBuffer
1 parent 458db39 commit 87affb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/crypto/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (r *AuthenticationReader) readInternal(soft bool, mb *buf.MultiBuffer) erro
181181
if size <= buf.Size {
182182
b, err := r.readBuffer(effectiveSize, int32(padding))
183183
if err != nil {
184-
return nil
184+
return err
185185
}
186186
*mb = append(*mb, b)
187187
return nil

0 commit comments

Comments
 (0)