Diff between 514e224641d79b33cc2cf082dff55b311dfe6721 and 8b4d1ea5412fc0c3eb8c45f099fcdb2860046f4e
Changed Files
| File | Additions | Deletions | Status |
| src/shared/crypto.c | +1 | -1 | modified |
Full Patch
diff --git a/src/shared/crypto.c b/src/shared/crypto.c
index e46f07f..b50baa5 100644
--- a/src/shared/crypto.c
+++ b/src/shared/crypto.c
@@ -273,7 +273,7 @@ bool bt_crypto_sign_att(struct bt_crypto *crypto, const uint8_t key[16],
memcpy(msg, m, m_len);
/* Add sign_counter to the message */
- put_le32(sign_cnt, msg + msg_len);
+ put_le32(sign_cnt, msg + m_len);
/* The most significant octet of key corresponds to key[0] */
swap128(key, tmp);