fix signature check
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Mon, 23 Jul 2018 12:10:33 +0000 (14:10 +0200)
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Mon, 23 Jul 2018 12:10:33 +0000 (14:10 +0200)
src/reclaim/oidc_helper.c

index f63e38e9ab731d69bb20b808c9b5e139bd25c80f..1e9e64fec0241a88bc89ed1b3f7e7f7358dfd4bf 100644 (file)
@@ -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,