gnunet-svn
[Top][All Lists]
Advanced

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

[taler-twister] branch master updated: fix NPE issue


From: gnunet
Subject: [taler-twister] branch master updated: fix NPE issue
Date: Mon, 10 Aug 2020 08:08:01 +0200

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

grothoff pushed a commit to branch master
in repository twister.

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

commit 17b2aa026e2a4f0a96c255ebb1045085f8418187
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Aug 10 08:07:59 2020 +0200

    fix NPE issue
---
 src/twister/taler-twister-service.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/twister/taler-twister-service.c 
b/src/twister/taler-twister-service.c
index 4549a52..3dc7603 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -1634,6 +1634,7 @@ create_response (void *cls,
                 hr->io_len,
                 JSON_COMPACT);
     json_decref (hr->json);
+    hr->json = NULL;
 
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "Generating curl request\n");
@@ -1893,8 +1894,17 @@ create_response (void *cls,
     GNUNET_free (hr->io_buf);
     hr->io_buf = json_dumps (hr->json,
                              JSON_COMPACT);
-    hr->io_len = strlen (hr->io_buf);
+    if (NULL != hr->io_buf)
+    {
+      hr->io_len = strlen (hr->io_buf);
+    }
+    else
+    {
+      GNUNET_break (0);
+      hr->io_len = 0;
+    }
     json_decref (hr->json);
+    hr->json = NULL;
   }
 
   if (GNUNET_YES == malform)
@@ -2735,7 +2745,7 @@ handle_modify_path_ul (void *cls,
  */
 static int
 check_modify_header_dl (void *cls,
-                      const struct TWISTER_ModifyPath *src)
+                        const struct TWISTER_ModifyPath *src)
 {
   return GNUNET_OK;
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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