Skip to content

Commit 8ee8e5a

Browse files
committed
largeblob: s/token_store/tmp_token/g for consistency
1 parent c25f8fd commit 8ee8e5a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/largeblob.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,13 +550,13 @@ largeblob_set_array(fido_dev_t *dev, const cbor_item_t *item, const char *pin,
550550
int *ms)
551551
{
552552
unsigned char dgst[SHA256_DIGEST_LENGTH];
553-
fido_blob_t cbor, token_store;
553+
fido_blob_t cbor, tmp_token;
554554
const fido_blob_t *token = NULL;
555555
size_t chunklen, maxchunklen, totalsize;
556556
int r;
557557

558558
memset(&cbor, 0, sizeof(cbor));
559-
memset(&token_store, 0, sizeof(token_store));
559+
memset(&tmp_token, 0, sizeof(tmp_token));
560560

561561
if ((maxchunklen = get_chunklen(dev)) == 0) {
562562
fido_log_debug("%s: maxchunklen=%zu", __func__, maxchunklen);
@@ -592,7 +592,7 @@ largeblob_set_array(fido_dev_t *dev, const cbor_item_t *item, const char *pin,
592592
fido_log_debug("%s: fido_dev_get_uv_token", __func__);
593593
goto fail;
594594
}
595-
token = &token_store;
595+
token = &tmp_token;
596596
}
597597

598598
for (size_t offset = 0; offset < cbor.len; offset += chunklen) {
@@ -614,7 +614,7 @@ largeblob_set_array(fido_dev_t *dev, const cbor_item_t *item, const char *pin,
614614

615615
r = FIDO_OK;
616616
fail:
617-
fido_blob_reset(&token_store);
617+
fido_blob_reset(&tmp_token);
618618
fido_blob_reset(&cbor);
619619

620620
return r;

0 commit comments

Comments
 (0)