From 99f09790f1fde910934616d9e2efa2e467199b78 Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Thu, 14 Feb 2019 16:03:19 -0500 Subject: [PATCH] deterministic --- fido2/ctap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fido2/ctap.c b/fido2/ctap.c index f6be44e..845e66f 100644 --- a/fido2/ctap.c +++ b/fido2/ctap.c @@ -1015,7 +1015,8 @@ uint8_t ctap_get_assertion(CborEncoder * encoder, uint8_t * request, int length) { ret = cbor_encode_int(&map,RESP_authData); check_ret(ret); - ret = cbor_encode_byte_string(&map, auth_data_buf, sizeof(CTAP_authDataHeader)); + memset(auth_data_buf,0,sizeof(auth_data_buf)); + ret = cbor_encode_byte_string(&map, auth_data_buf, sizeof(auth_data_buf)); check_ret(ret); } else