Skip to content

Commit

Permalink
Fix: ssr broken (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
goomadao authored Aug 12, 2020
1 parent 0b7918d commit 8b7c731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions component/ssr/protocol/auth_aes128_md5.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ func (a *authAES128) Decode(b []byte) ([]byte, int, error) {
break
}

h = a.hmac(key, b[:bSize-4])
if !bytes.Equal(h[:4], b[bSize-4:]) {
h = a.hmac(key, b[:length-4])
if !bytes.Equal(h[:4], b[length-4:length]) {
return nil, 0, errAuthAES128IncorrectChecksum
}

Expand Down

0 comments on commit 8b7c731

Please sign in to comment.