Skip to content

Commit

Permalink
Merge pull request #185 from quexten/fix/browserbiometrics
Browse files Browse the repository at this point in the history
Fix browser biometrics integration
  • Loading branch information
quexten authored Apr 29, 2024
2 parents bf312b0 + dfa978b commit fb2ad7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browserbiometrics/communication.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ func writeMessageLength(msg []byte) error {
}

func readMessageLength(msg []byte) (int, error) {
var length int
var length int32
buf := bytes.NewBuffer(msg)
err := binary.Read(buf, nativeEndian, &length)
if err != nil {
return 0, fmt.Errorf("Unable to read bytes representing message length: %w", err)
}
return length, nil
return int(length), nil
}

func send(msg SendMessage) error {
Expand Down

0 comments on commit fb2ad7f

Please sign in to comment.