From: Christian Grothoff Date: Fri, 17 Jun 2011 07:44:22 +0000 (+0000) Subject: more asserts X-Git-Tag: initial-import-from-subversion-38251~18115 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ef2dcdf5f7787371fcce2259a7e0736780846b75;p=oweals%2Fgnunet.git more asserts --- diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c index 15139b17d..67125c451 100644 --- a/src/datastore/datastore_api.c +++ b/src/datastore/datastore_api.c @@ -481,6 +481,7 @@ make_queue_entry (struct GNUNET_DATASTORE_Handle *h, gettext_noop ("# Requests dropped from datastore queue"), 1, GNUNET_NO); + GNUNET_assert (h->queue_head == pos); pos->response_proc (h, NULL); break; } @@ -1296,6 +1297,7 @@ process_result_message (void *cls, return; } qe = h->queue_head; + GNUNET_assert (NULL != qe); rc = qe->qc.rc; if (GNUNET_YES != qe->was_transmitted) {