From: Julius Bünger Date: Thu, 28 Dec 2017 23:48:08 +0000 (+0100) Subject: rps: add assertion X-Git-Tag: gnunet-0.11.0rc0~65 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bbed9b3ecc520babb9152bafca87ccd287e7311d;p=oweals%2Fgnunet.git rps: add assertion --- 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) 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);