- assertions for debugging
authorSree Harsha Totakura <totakura@in.tum.de>
Fri, 15 Mar 2013 10:08:14 +0000 (10:08 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Fri, 15 Mar 2013 10:08:14 +0000 (10:08 +0000)
src/testbed/gnunet-service-testbed_cache.c

index ff65c8a9991c3b651265ac3ec5ee58fc3afbf83a..92a3580c3fb95aaa978392e2e7ca8f64cc926ac9 100644 (file)
@@ -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);
 }