[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: fix NULL handling in spec parsers
From: |
gnunet |
Subject: |
[gnunet] branch master updated: fix NULL handling in spec parsers |
Date: |
Tue, 10 Dec 2024 19:19:13 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 45717507d fix NULL handling in spec parsers
45717507d is described below
commit 45717507de36431fc2a8cbd97b59235fafcdb209
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Dec 10 19:19:06 2024 +0100
fix NULL handling in spec parsers
---
src/lib/pq/pq_result_helper.c | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git a/src/lib/pq/pq_result_helper.c b/src/lib/pq/pq_result_helper.c
index caf9a581d..d46f293ba 100644
--- a/src/lib/pq/pq_result_helper.c
+++ b/src/lib/pq/pq_result_helper.c
@@ -1943,15 +1943,18 @@ clean_blind_sign_pub (void *cls,
struct GNUNET_CRYPTO_BlindSignPublicKey **pub = rd;
(void) cls;
- GNUNET_CRYPTO_blind_sign_pub_decref (*pub);
- *pub = NULL;
+ if (NULL != *pub)
+ {
+ GNUNET_CRYPTO_blind_sign_pub_decref (*pub);
+ *pub = NULL;
+ }
}
struct GNUNET_PQ_ResultSpec
-GNUNET_PQ_result_spec_blind_sign_pub (const char *name,
- struct GNUNET_CRYPTO_BlindSignPublicKey
**
- pub)
+GNUNET_PQ_result_spec_blind_sign_pub (
+ const char *name,
+ struct GNUNET_CRYPTO_BlindSignPublicKey **pub)
{
struct GNUNET_PQ_ResultSpec res = {
.conv = &extract_blind_sign_pub,
@@ -2076,15 +2079,18 @@ clean_blind_sign_priv (void *cls,
struct GNUNET_CRYPTO_BlindSignPrivateKey **priv = rd;
(void) cls;
- GNUNET_CRYPTO_blind_sign_priv_decref (*priv);
- *priv = NULL;
+ if (NULL != *priv)
+ {
+ GNUNET_CRYPTO_blind_sign_priv_decref (*priv);
+ *priv = NULL;
+ }
}
struct GNUNET_PQ_ResultSpec
-GNUNET_PQ_result_spec_blind_sign_priv (const char *name,
- struct GNUNET_CRYPTO_BlindSignPrivateKey
- **priv)
+GNUNET_PQ_result_spec_blind_sign_priv (
+ const char *name,
+ struct GNUNET_CRYPTO_BlindSignPrivateKey **priv)
{
struct GNUNET_PQ_ResultSpec res = {
.conv = &extract_blind_sign_priv,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: fix NULL handling in spec parsers,
gnunet <=