Fix keyID parsing
This commit is contained in:
parent
e485992e10
commit
9dffdd608f
|
@ -155,7 +155,7 @@ func parsePutAsymmetricKeyResponse(payload []byte) (Response, error) {
|
|||
}
|
||||
|
||||
var keyID uint16
|
||||
err := binary.Read(bytes.NewReader(payload[1:3]), binary.BigEndian, &keyID)
|
||||
err := binary.Read(bytes.NewReader(payload), binary.BigEndian, &keyID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue