This commit is contained in:
Conor Patrick
2020-03-23 16:42:29 -04:00
parent fdc5a68fcd
commit 97eb6bba8a
2 changed files with 3 additions and 3 deletions

View File

@@ -699,7 +699,7 @@ uint8_t ctap_parse_extensions(CborValue * val, CTAP_extensions * ext)
}
}
else if (strncmp(key, "credProtect",11) == 0) {
if (cbor_value_get_type(&map) != CborIntegerType) {
if (cbor_value_get_type(&map) == CborIntegerType) {
ret = cbor_value_get_int(&map, (int*)&ext->cred_protect);
check_ret(ret);
} else {