gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fixes
Date: Mon, 23 Jul 2018 13:33:02 +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 6c4bd2077 fixes
6c4bd2077 is described below

commit 6c4bd20776ce2dd060beee9abd7baaf7d38c4988
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Mon Jul 23 13:32:54 2018 +0200

    fixes
---
 src/reclaim/oidc_helper.c                | 4 ++--
 src/reclaim/plugin_rest_openid_connect.c | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c
index 9a99c5668..5ad1ff0a0 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 (&purpose[1] + sizeof (struct GNUNET_RECLAIM_Ticket),
-            nonce_str,
+    memcpy (nonce_str,
+            &purpose[1] + sizeof (struct GNUNET_RECLAIM_Ticket),
             strlen (nonce_str));
   if (GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify 
(GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN,
                                                purpose,
diff --git a/src/reclaim/plugin_rest_openid_connect.c 
b/src/reclaim/plugin_rest_openid_connect.c
index 06815d9d1..1846df901 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -903,8 +903,7 @@ lookup_redirect_uri_result (void *cls,
                 (unsigned char) '/');
   *pos = '\0';
   handle->redirect_suffix = GNUNET_strdup (pos + 1);
-  GNUNET_free (tmp);
-
+  
   GNUNET_STRINGS_string_to_data (tmp_key_str,
                                  strlen (tmp_key_str),
                                  &redirect_zone,
@@ -917,6 +916,8 @@ lookup_redirect_uri_result (void *cls,
                                  handle,
                                  &get_client_name_result,
                                  handle);
+  GNUNET_free (tmp);
+
 }
 
 /**
@@ -1476,7 +1477,6 @@ check_authorization (struct RequestHandle *handle,
                                  cid,
                                  sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey));
 
-  GNUNET_free (client_id);
   GNUNET_free (basic_authorization);
   return GNUNET_OK;
 }

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



reply via email to

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