[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 03/04: RPS service: Assure map with exists before
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 03/04: RPS service: Assure map with exists before using |
Date: |
Thu, 13 Dec 2018 15:54:32 +0100 |
This is an automated email from the git hooks/post-receive script.
julius-buenger pushed a commit to branch master
in repository gnunet.
commit 37f806bedb12e20a6ccdd87df7fa28d4b4ad041e
Author: Julius Bünger <address@hidden>
AuthorDate: Mon Dec 10 17:58:57 2018 +0100
RPS service: Assure map with exists before using
---
src/rps/gnunet-service-rps.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 10ab1c10a..0c333c4f1 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -3499,7 +3499,8 @@ handle_peer_pull_request (void *cls,
"# pull request message received",
1,
GNUNET_NO);
- if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (map_single_hop,
+ if (NULL != map_single_hop &&
+ GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (map_single_hop,
&peer_ctx->peer_id))
{
GNUNET_STATISTICS_update (stats,
@@ -3770,7 +3771,8 @@ send_pull_request (struct PeerContext *peer_ctx)
"# pull request send issued",
1,
GNUNET_NO);
- if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (map_single_hop,
+ if (NULL != map_single_hop &&
+ GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (map_single_hop,
&peer_ctx->peer_id))
{
GNUNET_STATISTICS_update (stats,
--
To stop receiving notification emails like this one, please contact
address@hidden