Skip to content

Commit

Permalink
2023-12-03
Browse files Browse the repository at this point in the history
  • Loading branch information
qtgolang committed Dec 2, 2023
1 parent c4ac646 commit 9db3795
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Api/socketClinet.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ func SocketClientDial(Context int, addr string, call int, isTls, synchronous boo
}

}
if w.err != nil {
return false
}
w.wb = a
w.err = b
} else {
Expand All @@ -171,7 +168,9 @@ func SocketClientDial(Context int, addr string, call int, isTls, synchronous boo
w.wb = a
w.err = b
}

if w.err != nil {
return false
}
w.synchronous = synchronous
if isTls {
var t *tls.Config
Expand Down
2 changes: 1 addition & 1 deletion src/protobuf/protobuf.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (p *parser) parseMessage(msgDesc protoreflect.MessageDescriptor, group, inf
for len(p.in) > 0 {
v, n := protowire.ConsumeVarint(p.in)
num, typ := protowire.DecodeTag(v)
if n < 0 || num <= 0 || v > math.MaxUint32 {
if n < 0 || num < 0 || v > math.MaxUint32 {
p.out, p.in = append(p.out, Raw(p.in)), nil
p.invalid = true
return
Expand Down

0 comments on commit 9db3795

Please sign in to comment.