From 6a69e4041f80f9d94be417236139a9c511199142 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Thu, 21 Feb 2019 21:32:56 +0100 Subject: [PATCH] RPS service: Use peermap only when non-NULL --- src/rps/gnunet-service-rps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, "# pull reply messages 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, &channel_ctx->peer_ctx->peer_id)) { GNUNET_STATISTICS_update (stats, -- 2.25.1