From: Schanzenbach, Martin Date: Wed, 4 Sep 2019 20:40:47 +0000 (+0200) Subject: fix loop X-Git-Tag: v0.11.7~163 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=54b4415ffc78a6be2fb78610fdc60709c7e1d90c;p=oweals%2Fgnunet.git fix loop --- diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c index 81688f3e0..c11079fb2 100644 --- a/src/reclaim/oidc_helper.c +++ b/src/reclaim/oidc_helper.c @@ -350,6 +350,7 @@ base64url_encode (const char *data, size_t data_size) enc[pos] = '\0'; break; } + pos++; } return enc; } @@ -662,7 +663,7 @@ OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa_priv, } GNUNET_free (expected_code_challenge); // Ticket - memcpy (ticket, params->ticket, sizeof (*ticket)); + memcpy (ticket, ¶ms->ticket, sizeof (params->ticket)); // Nonce nonce = ntohl (params->nonce); //ntohl (*((uint32_t *) ptr)); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got nonce: %u\n", nonce);