diff --git a/src/fido/cbor_make_credential.c b/src/fido/cbor_make_credential.c index 9657307..ebe03fe 100644 --- a/src/fido/cbor_make_credential.c +++ b/src/fido/cbor_make_credential.c @@ -240,7 +240,7 @@ int cbor_make_credential(const uint8_t *data, size_t len) { if (strcmp(excludeList[e].type.data, "public-key") != 0) continue; Credential ecred; - if (credential_load(excludeList[e].id.data, excludeList[e].id.len, rp_id_hash, &ecred) == 0 && (ecred.extensions.credProtect != CRED_PROT_UV_REQUIRED || flags & FIDO2_AUT_FLAG_UV)) + if (credential_load(excludeList[e].id.data, excludeList[e].id.len, rp_id_hash, &ecred) == 0 && (ecred.extensions.credProtect != CRED_PROT_UV_REQUIRED || (flags & FIDO2_AUT_FLAG_UV))) CBOR_ERROR(CTAP2_ERR_CREDENTIAL_EXCLUDED); }