From: Julius Bünger Date: Thu, 21 Feb 2019 20:32:56 +0000 (+0100) Subject: RPS service: Use peermap only when non-NULL X-Git-Tag: v0.11.0~63^2~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6a69e4041f80f9d94be417236139a9c511199142;p=oweals%2Fgnunet.git RPS service: Use peermap only when non-NULL --- 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,