From 9833b07bfe99df292b94847eadb086e7be9d5a72 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Sun, 5 Nov 2017 14:00:10 -0600 Subject: [PATCH] Asserts to track down a bug --- src/revocation/gnunet-service-revocation.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c index 9d077f874..8281e9a16 100644 --- a/src/revocation/gnunet-service-revocation.c +++ b/src/revocation/gnunet-service-revocation.c @@ -509,6 +509,7 @@ transmit_task_cb (void *cls) "Starting set exchange with peer `%s'\n", GNUNET_i2s (&peer_entry->id)); peer_entry->transmit_task = NULL; + GNUNET_assert (NULL == peer_entry->so); peer_entry->so = GNUNET_SET_prepare (&peer_entry->id, &revocation_set_union_app_id, NULL, @@ -758,6 +759,7 @@ handle_revocation_union_request (void *cls, { peer_entry = new_peer_entry (other_peer); } + GNUNET_assert (NULL == peer_entry->so); peer_entry->so = GNUNET_SET_accept (request, GNUNET_SET_RESULT_ADDED, (struct GNUNET_SET_Option[]) {{ 0 }}, -- 2.25.1