Correctly propagate error in AuthenticationReader readBuffer

This commit is contained in:
风扇滑翔翼 authored and yuhan6665 committed 2024-03-04 18:49:16 -05:00
1 parent a994bf8b04
commit 87ef07d5f4
1 file changed
+1 -1
+1 -1
View File
@@ -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