Merge pull request #185 from quexten/fix/browserbiometrics

Fix browser biometrics integration
This commit is contained in:
Bernd Schoolmann 2024-04-29 20:27:55 +02:00 committed by GitHub
commit fb2ad7f072
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -43,13 +43,13 @@ func writeMessageLength(msg []byte) error {
} }
func readMessageLength(msg []byte) (int, error) { func readMessageLength(msg []byte) (int, error) {
var length int var length int32
buf := bytes.NewBuffer(msg) buf := bytes.NewBuffer(msg)
err := binary.Read(buf, nativeEndian, &length) err := binary.Read(buf, nativeEndian, &length)
if err != nil { if err != nil {
return 0, fmt.Errorf("Unable to read bytes representing message length: %w", err) 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 { func send(msg SendMessage) error {