From: Schanzenbach, Martin Date: Fri, 26 Apr 2019 15:56:56 +0000 (+0200) Subject: ftbfs X-Git-Tag: v0.11.4~83 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d3cbf285ef96ba62861036370b3e0f0571d7d914;p=oweals%2Fgnunet.git ftbfs --- diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c index 140b0a479..82f01b755 100644 --- a/src/reclaim/oidc_helper.c +++ b/src/reclaim/oidc_helper.c @@ -346,7 +346,7 @@ OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, if ((1 != SSCANF (nonce_str, "%u", &nonce)) || (nonce > UINT32_MAX)) { GNUNET_break (0); - GNUNET_log (GNUNET_ERROR_LOG_ERROR, + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Invalid nonce %s\n", nonce_str); GNUNET_free (code_payload); GNUNET_free_non_null (attrs_ser); @@ -365,7 +365,7 @@ OIDC_build_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, if (GNUNET_SYSERR == GNUNET_CRYPTO_ecdsa_sign (issuer, purpose, &signature)) { GNUNET_break (0); - GNUNET_log (GNUNET_ERROR_LOG_ERROR, + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Unable to sign code\n"); GNUNET_free (code_payload); GNUNET_free_non_null (attrs_ser); @@ -418,7 +418,7 @@ OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPublicKey *audience, attrs_ser_len -= sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose); *ticket = *((struct GNUNET_RECLAIM_Ticket *) &purpose[1]); attrs_ser_len -= sizeof (struct GNUNET_RECLAIM_Ticket); - nonce = ntohs (((unsigned int *) &ticket[1])); + nonce = ntohs (*((unsigned int *) &ticket[1])); attrs_ser_len -= sizeof (unsigned int); ptr = code_payload; signature_offset =