From 54b4415ffc78a6be2fb78610fdc60709c7e1d90c Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Wed, 4 Sep 2019 22:40:47 +0200 Subject: [PATCH] fix loop --- src/reclaim/oidc_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.25.1