summaryrefslogtreecommitdiff
path: root/board/cr50/dcrypto/u2f.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cr50/dcrypto/u2f.c')
-rw-r--r--board/cr50/dcrypto/u2f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cr50/dcrypto/u2f.c b/board/cr50/dcrypto/u2f.c
index 6680007a44..2496370c60 100644
--- a/board/cr50/dcrypto/u2f.c
+++ b/board/cr50/dcrypto/u2f.c
@@ -589,7 +589,7 @@ size_t g2f_attestation_cert_serial(const struct u2f_state *state,
{
p256_int d, pk_x, pk_y;
- if (g2f_individual_key_pair(state, &d, &pk_x, &pk_y))
+ if (!g2f_individual_key_pair(state, &d, &pk_x, &pk_y))
return 0;
/* Note that max length is not currently respected here. */