rps: add assertion
authorJulius Bünger <buenger@mytum.de>
Thu, 28 Dec 2017 23:48:08 +0000 (00:48 +0100)
committerJulius Bünger <buenger@mytum.de>
Thu, 28 Dec 2017 23:48:08 +0000 (00:48 +0100)
src/rps/gnunet-service-rps_peers.c

index 1c7bd07f86cc499051c4bf3fbe7b98a41f372044..933e3cb8735ed336c9c1359156cba4857f47e691 100644 (file)
@@ -661,6 +661,7 @@ remove_pending_message (struct PendingMessage *pending_msg, int cancel)
   struct PeerContext *peer_ctx;
 
   peer_ctx = pending_msg->peer_ctx;
+  GNUNET_assert (NULL != peer_ctx);
   GNUNET_CONTAINER_DLL_remove (peer_ctx->pending_messages_head,
                                peer_ctx->pending_messages_tail,
                                pending_msg);