Skip to content

Commit

Permalink
修复服务端无扩展时解析错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Trisia committed Jan 14, 2025
1 parent 0c4e790 commit c26852b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tlcp/handshake_messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,11 @@ func (m *serverHelloMsg) unmarshal(data []byte) bool {
return false
}

if s.Empty() {
// 没有扩展字段
return true
}

// GM/T 0024-2023 扩展字段
/*
struct {
Expand Down

0 comments on commit c26852b

Please sign in to comment.