summaryrefslogtreecommitdiff
path: root/src/rps
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2019-02-21 21:32:56 +0100
committerJulius Bünger <buenger@mytum.de>2019-02-21 21:32:56 +0100
commit6a69e4041f80f9d94be417236139a9c511199142 (patch)
treec49fc8abfa69574856654054b1ed9847fbbf2c3a /src/rps
parentb4d534a55203bf2b12f834c40547c3860252dcdf (diff)
downloadgnunet-6a69e4041f80f9d94be417236139a9c511199142.tar.gz
gnunet-6a69e4041f80f9d94be417236139a9c511199142.zip
RPS service: Use peermap only when non-NULL
Diffstat (limited to 'src/rps')
-rw-r--r--src/rps/gnunet-service-rps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index a06ed3907..849bc4c63 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -3645,7 +3645,8 @@ handle_peer_pull_reply (void *cls,
3645 "# pull reply messages received", 3645 "# pull reply messages received",
3646 1, 3646 1,
3647 GNUNET_NO); 3647 GNUNET_NO);
3648 if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (map_single_hop, 3648 if (NULL != map_single_hop &&
3649 GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (map_single_hop,
3649 &channel_ctx->peer_ctx->peer_id)) 3650 &channel_ctx->peer_ctx->peer_id))
3650 { 3651 {
3651 GNUNET_STATISTICS_update (stats, 3652 GNUNET_STATISTICS_update (stats,