gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libebics] branch master updated: Fix segfault.


From: gnunet
Subject: [GNUnet-SVN] [libebics] branch master updated: Fix segfault.
Date: Mon, 22 Oct 2018 17:25:25 +0200

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

marcello pushed a commit to branch master
in repository libebics.

The following commit(s) were added to refs/heads/master by this push:
     new db7b58b  Fix segfault.
db7b58b is described below

commit db7b58b453fb421b187885b843753bb537f41690
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Oct 22 17:25:11 2018 +0200

    Fix segfault.
---
 src/libebics.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/libebics.c b/src/libebics.c
index 91832ea..2a4c2e2 100644
--- a/src/libebics.c
+++ b/src/libebics.c
@@ -765,12 +765,14 @@ EBICS_init_library (const char *key_dir,
          "Could not init GNUnet CURL\n");
     return EBICS_ERROR;
   }
-
   reschedule_ctx = GNUNET_CURL_gnunet_rc_create_with_parser
     (ctx,
      &parse_response,
      &clean_response);
 
+  GNUNET_assert (NULL != reschedule_ctx);
+  GNUNET_assert (NULL != ctx);
+
   GNUNET_free (data_dir);
   return EBICS_SUCCESS;
 }
@@ -806,8 +808,10 @@ EBICS_close_library ()
   free_genex_documents (genexList);
   free_keymaterial (keyList);
 
-  GNUNET_CURL_gnunet_rc_destroy (reschedule_ctx);
-  GNUNET_CURL_fini (ctx);
+  if (NULL != reschedule_ctx)
+    GNUNET_CURL_gnunet_rc_destroy (reschedule_ctx);
+  if (NULL != ctx)
+    GNUNET_CURL_fini (ctx);
 
   return EBICS_SUCCESS;
 }

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



reply via email to

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