[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -allow NULL
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -allow NULL |
Date: |
Mon, 02 Aug 2021 13:34:24 +0200 |
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 5d1e2bed2 -allow NULL
5d1e2bed2 is described below
commit 5d1e2bed2cd01c4d14a6044c811fea539d39300b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Aug 2 13:31:02 2021 +0200
-allow NULL
---
src/pq/pq_connect.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/pq/pq_connect.c b/src/pq/pq_connect.c
index 4e614526b..b06a591cf 100644
--- a/src/pq/pq_connect.c
+++ b/src/pq/pq_connect.c
@@ -294,7 +294,7 @@ GNUNET_PQ_reconnect_if_down (struct GNUNET_PQ_Context *db)
void
GNUNET_PQ_reconnect (struct GNUNET_PQ_Context *db)
{
- if (NULL != db->sc)
+ if (NULL != db->sc)
db->sc (db->sc_cls,
-1);
if (NULL != db->conn)
@@ -468,6 +468,8 @@ GNUNET_PQ_connect_with_cfg (const struct
GNUNET_CONFIGURATION_Handle *cfg,
void
GNUNET_PQ_disconnect (struct GNUNET_PQ_Context *db)
{
+ if (NULL == db)
+ return;
GNUNET_assert (0 ==
GNUNET_CONTAINER_multishortmap_size (db->channel_map));
GNUNET_CONTAINER_multishortmap_destroy (db->channel_map);
--
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: -allow NULL,
gnunet <=