From: Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Date: Mon, 23 Jul 2018 12:10:33 +0000 (+0200)
Subject: fix signature check
X-Git-Tag: v0.11.0~322^2~43
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a84e3a97d067bb36d350ee6acb09772fcda37127;p=oweals%2Fgnunet.git

fix signature check
---

diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c
index f63e38e9a..1e9e64fec 100644
--- a/src/reclaim/oidc_helper.c
+++ b/src/reclaim/oidc_helper.c
@@ -364,8 +364,8 @@ OIDC_parse_authz_code (const struct GNUNET_CRYPTO_EcdsaPublicKey *audience,
 
   }
   if (NULL != nonce_str)
-    memcpy (nonce_str,
-            ((char*)&purpose[1]) + sizeof (struct GNUNET_RECLAIM_Ticket),
+    memcpy (((char*)&purpose[1]) + sizeof (struct GNUNET_RECLAIM_Ticket),
+            nonce_str,
             strlen (nonce_str));
   if (GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN,
                                                purpose,