aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-09-04 22:40:47 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-09-04 22:40:47 +0200
commit54b4415ffc78a6be2fb78610fdc60709c7e1d90c (patch)
tree4d8fbce0afe3dac1e8879af3886c9c26eb456550 /src
parentdb455adbb790a7d3973a0c26903c85a71ebe0a1f (diff)
downloadgnunet-54b4415ffc78a6be2fb78610fdc60709c7e1d90c.tar.gz
gnunet-54b4415ffc78a6be2fb78610fdc60709c7e1d90c.zip
fix loop
Diffstat (limited to 'src')
-rw-r--r--src/reclaim/oidc_helper.c3
1 files changed, 2 insertions, 1 deletions
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)
350 enc[pos] = '\0'; 350 enc[pos] = '\0';
351 break; 351 break;
352 } 352 }
353 pos++;
353 } 354 }
354 return enc; 355 return enc;
355} 356}
@@ -662,7 +663,7 @@ OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPrivateKey *ecdsa_priv,
662 } 663 }
663 GNUNET_free (expected_code_challenge); 664 GNUNET_free (expected_code_challenge);
664 // Ticket 665 // Ticket
665 memcpy (ticket, params->ticket, sizeof (*ticket)); 666 memcpy (ticket, &params->ticket, sizeof (params->ticket));
666 // Nonce 667 // Nonce
667 nonce = ntohl (params->nonce); //ntohl (*((uint32_t *) ptr)); 668 nonce = ntohl (params->nonce); //ntohl (*((uint32_t *) ptr));
668 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got nonce: %u\n", nonce); 669 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got nonce: %u\n", nonce);