From e55d999582633cc90d51feb4ed43513d956ff093 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Fri, 15 Mar 2013 10:08:14 +0000 Subject: [PATCH] - assertions for debugging --- src/testbed/gnunet-service-testbed_cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/testbed/gnunet-service-testbed_cache.c b/src/testbed/gnunet-service-testbed_cache.c index ff65c8a99..92a3580c3 100644 --- a/src/testbed/gnunet-service-testbed_cache.c +++ b/src/testbed/gnunet-service-testbed_cache.c @@ -438,6 +438,7 @@ search_suitable_cgh (const struct CacheEntry *entry, case CGT_CORE_HANDLE: if (NULL == entry->core_handle) continue; + GNUNET_break (NULL != entry->peer_identity); break; } break; @@ -478,6 +479,7 @@ call_cgh_cb (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) cgh->nctxt); } LOG_DEBUG ("Calling notify for handle type %u\n", cgh->type); + GNUNET_break ((NULL == entry->core_handle) || (NULL != entry->peer_identity)); cgh->cb (cgh->cb_cls, entry->core_handle, entry->transport_handle, entry->peer_identity); } -- 2.25.1