RPS service: Use peermap only when non-NULL
authorJulius Bünger <buenger@mytum.de>
Thu, 21 Feb 2019 20:32:56 +0000 (21:32 +0100)
committerJulius Bünger <buenger@mytum.de>
Thu, 21 Feb 2019 20:32:56 +0000 (21:32 +0100)
src/rps/gnunet-service-rps.c

index a06ed390741f59ef2e30816c4c96386ca52b8e16..849bc4c6357b8ba84225b4391b440c6529b3b0e4 100644 (file)
@@ -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,