gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: minor
Date: Fri, 26 Apr 2019 17:23:27 +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 39e6b1d12 minor
39e6b1d12 is described below

commit 39e6b1d120ced38fd7def997aca282791d8d9c82
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Fri Apr 26 17:23:12 2019 +0200

    minor
---
 src/reclaim/oidc_helper.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c
index 91b024c12..5bcf932f5 100644
--- a/src/reclaim/oidc_helper.c
+++ b/src/reclaim/oidc_helper.c
@@ -216,7 +216,7 @@ static char *
 url_encode (const char *str)
 {
   char *pstr = (char *) str;
-  char *buf = malloc (strlen (str) * 3 + 1);
+  char *buf = GNUNET_malloc (strlen (str) * 3 + 1);
   char *pbuf = buf;
   while (*pstr)
   {
@@ -226,8 +226,11 @@ url_encode (const char *str)
     else if (*pstr == ' ')
       *pbuf++ = '+';
     else
-      *pbuf++ = '%', *pbuf++ = to_hex (*pstr >> 4),
+    {
+      *pbuf++ = '%';
+      *pbuf++ = to_hex (*pstr >> 4);
       *pbuf++ = to_hex (*pstr & 15);
+    }
     pstr++;
   }
   *pbuf = '\0';
@@ -241,7 +244,7 @@ static char *
 url_decode (const char *str)
 {
   char *pstr = (char *) str;
-  char *buf = malloc (strlen (str) + 1);
+  char *buf = GNUNET_malloc (strlen (str) + 1);
   char *pbuf = buf;
   while (*pstr)
   {
@@ -342,6 +345,7 @@ OIDC_build_authz_code (const struct 
GNUNET_CRYPTO_EcdsaPrivateKey *issuer,
   {
     if ((1 != SSCANF (nonce_str, "%u", &nonce)) || (nonce > UINT16_MAX))
     {
+      GNUNET_break (0);
       GNUNET_free (code_payload);
       GNUNET_free_non_null (attrs_ser);
       return NULL;
@@ -358,6 +362,7 @@ OIDC_build_authz_code (const struct 
GNUNET_CRYPTO_EcdsaPrivateKey *issuer,
   }
   if (GNUNET_SYSERR == GNUNET_CRYPTO_ecdsa_sign (issuer, purpose, &signature))
   {
+    GNUNET_break (0);
     GNUNET_free (code_payload);
     GNUNET_free_non_null (attrs_ser);
     return NULL;

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



reply via email to

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