From c923f422b1e455bdd8ec3bdb10d005e3bfbacfe0 Mon Sep 17 00:00:00 2001 From: nicoo Date: Sun, 23 Feb 2020 15:31:16 +0100 Subject: New upstream version 1.3.1 --- src/u2f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/u2f.c') diff --git a/src/u2f.c b/src/u2f.c index 3f2d9aa..82b289f 100644 --- a/src/u2f.c +++ b/src/u2f.c @@ -439,7 +439,7 @@ encode_cred_authdata(const char *rp_id, const uint8_t *kh, uint8_t kh_len, authdata.sigcount = 0; memset(&attcred_raw.aaguid, 0, sizeof(attcred_raw.aaguid)); - attcred_raw.id_len = (uint16_t)(kh_len << 8); /* XXX */ + attcred_raw.id_len = htobe16(kh_len); len = authdata_blob.len = sizeof(authdata) + sizeof(attcred_raw) + kh_len + pk_blob.len; -- cgit v1.2.3