Fix stupid bug initializing asn1 struct.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-03-13 21:19:02 +01:00
parent e055d4cfc9
commit 151ae5fae4
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -23,7 +23,7 @@ int asn1_ctx_init(uint8_t *data, uint16_t len, asn1_ctx_t *ctx) {
return CCID_ERR_NULL_PARAM;
}
ctx->data = data;
ctx->len = 0;
ctx->len = len;
return CCID_OK;
}