From eea5745e4f8691e48a5c64ee95ebed32c4dbe001 Mon Sep 17 00:00:00 2001 From: Pavel Zakharov Date: Fri, 26 May 2023 15:11:10 -0400 Subject: [PATCH] Fix Key ID parsing bug in parseCreateAsymmetricKeyResponse --- commands/response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/response.go b/commands/response.go index 87bcaee..e44192e 100644 --- a/commands/response.go +++ b/commands/response.go @@ -266,7 +266,7 @@ func parseCreateAsymmetricKeyResponse(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 }