Skip to content

Commit

Permalink
fix: T119 (#221)
Browse files Browse the repository at this point in the history
* fix: 奇怪的永真式引起的报错

* Update tlv_decoders.go

* fix: 我是憨憨

* fix: 我是憨憨

---------

Co-authored-by: 源文雨 <[email protected]>
  • Loading branch information
LXY1226 and fumiama authored Aug 1, 2023
1 parent b49cd23 commit 42148c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/tlv_decoders.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (c *QQClient) decodeT119(data, ek []byte) {

s.PsKeyMap = psKeyMap
s.Pt4TokenMap = pt4TokenMap
if len(c.PasswordMd5[:]) > 0 {
if len(c.sig.EncryptedA1) > 51+16 {
data, cl := binary.OpenWriterF(func(w *binary.Writer) {
w.Write(c.PasswordMd5[:])
w.WriteUInt32(0) // []byte{0x00, 0x00, 0x00, 0x00}...
Expand Down

0 comments on commit 42148c0

Please sign in to comment.