gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: fix


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fix
Date: Mon, 23 Jul 2018 13:55:21 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new e3383d7cd fix
e3383d7cd is described below

commit e3383d7cd239905487bfae46967256bb2a1a98ab
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Mon Jul 23 13:55:18 2018 +0200

    fix
---
 src/reclaim/oidc_helper.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c
index 5ad1ff0a0..f63e38e9a 100644
--- a/src/reclaim/oidc_helper.c
+++ b/src/reclaim/oidc_helper.c
@@ -226,7 +226,7 @@ OIDC_build_authz_code (const struct 
GNUNET_CRYPTO_EcdsaPrivateKey *issuer,
           ticket,
           sizeof (struct GNUNET_RECLAIM_Ticket));
   if (NULL != nonce)
-    memcpy (&purpose[1] + sizeof (struct GNUNET_RECLAIM_Ticket),
+    memcpy (((char*)&purpose[1]) + sizeof (struct GNUNET_RECLAIM_Ticket),
             nonce,
             strlen (nonce));
   if (GNUNET_SYSERR == GNUNET_CRYPTO_ecdsa_sign (issuer,
@@ -365,7 +365,7 @@ OIDC_parse_authz_code (const struct 
GNUNET_CRYPTO_EcdsaPublicKey *audience,
   }
   if (NULL != nonce_str)
     memcpy (nonce_str,
-            &purpose[1] + sizeof (struct GNUNET_RECLAIM_Ticket),
+            ((char*)&purpose[1]) + sizeof (struct GNUNET_RECLAIM_Ticket),
             strlen (nonce_str));
   if (GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify 
(GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN,
                                                purpose,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]