aboutsummaryrefslogtreecommitdiff
path: root/src/rps
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2017-12-29 00:48:08 +0100
committerJulius Bünger <buenger@mytum.de>2017-12-29 00:48:08 +0100
commitbbed9b3ecc520babb9152bafca87ccd287e7311d (patch)
tree48e7cefb71346d7df8fbb42d34095b22413c86b6 /src/rps
parent6aff933441751d07823546e942b8e4c368f1119d (diff)
downloadgnunet-bbed9b3ecc520babb9152bafca87ccd287e7311d.tar.gz
gnunet-bbed9b3ecc520babb9152bafca87ccd287e7311d.zip
rps: add assertion
Diffstat (limited to 'src/rps')
-rw-r--r--src/rps/gnunet-service-rps_peers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps_peers.c b/src/rps/gnunet-service-rps_peers.c
index 1c7bd07f8..933e3cb87 100644
--- a/src/rps/gnunet-service-rps_peers.c
+++ b/src/rps/gnunet-service-rps_peers.c
@@ -661,6 +661,7 @@ remove_pending_message (struct PendingMessage *pending_msg, int cancel)
661 struct PeerContext *peer_ctx; 661 struct PeerContext *peer_ctx;
662 662
663 peer_ctx = pending_msg->peer_ctx; 663 peer_ctx = pending_msg->peer_ctx;
664 GNUNET_assert (NULL != peer_ctx);
664 GNUNET_CONTAINER_DLL_remove (peer_ctx->pending_messages_head, 665 GNUNET_CONTAINER_DLL_remove (peer_ctx->pending_messages_head,
665 peer_ctx->pending_messages_tail, 666 peer_ctx->pending_messages_tail,
666 pending_msg); 667 pending_msg);