mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Merge branch 'master' of https://github.com/RfidResearchGroup/proxmark3
This commit is contained in:
commit
a20895943e
1 changed files with 4 additions and 4 deletions
|
@ -32,14 +32,14 @@ static size_t dol_calculate_len(const struct tlv *tlv, size_t data_len) {
|
||||||
size_t count = 0;
|
size_t count = 0;
|
||||||
|
|
||||||
while (left) {
|
while (left) {
|
||||||
struct tlv tlv;
|
struct tlv cur_tlv;
|
||||||
if (!tlv_parse_tl(&buf, &left, &tlv))
|
if (!tlv_parse_tl(&buf, &left, &cur_tlv))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
count += tlv.len;
|
count += cur_tlv.len;
|
||||||
|
|
||||||
/* Last tag can be of variable length */
|
/* Last tag can be of variable length */
|
||||||
if (tlv.len == 0 && left == 0)
|
if (cur_tlv.len == 0 && left == 0)
|
||||||
count = data_len;
|
count = data_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue