mirror of
https://github.com/quexten/goldwarden.git
synced 2024-11-27 11:02:46 +03:00
Fix browser biometrics integration
This commit is contained in:
parent
695ba111ab
commit
dfa978b1af
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user