more asserts
authorChristian Grothoff <christian@grothoff.org>
Fri, 17 Jun 2011 07:44:22 +0000 (07:44 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 17 Jun 2011 07:44:22 +0000 (07:44 +0000)
src/datastore/datastore_api.c

index 15139b17dce227ec88592eabebf1c56b825b3dbc..67125c4511dd3b6b9b23336629b79832ec5217db 100644 (file)
@@ -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)
     {