fix 1708
authorChristian Grothoff <christian@grothoff.org>
Fri, 17 Jun 2011 07:39:57 +0000 (07:39 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 17 Jun 2011 07:39:57 +0000 (07:39 +0000)
src/datastore/datastore_api.c

index c347fd71db25f7034dc5c59da691e9e3224005e6..15139b17dce227ec88592eabebf1c56b825b3dbc 100644 (file)
@@ -1249,14 +1249,16 @@ process_result_message (void *cls,
   struct GNUNET_DATASTORE_QueueEntry *qe;
   struct ResultContext rc;
   const struct DataMessage *dm;
+  int was_transmitted;
 
   if (msg == NULL)
     {
       qe = h->queue_head;
       GNUNET_assert (NULL != qe);
       rc = qe->qc.rc;
+      was_transmitted = qe->was_transmitted;
       free_queue_entry (qe);
-      if (qe->was_transmitted == GNUNET_YES)
+      if (was_transmitted == GNUNET_YES)
        {
          GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                      _("Failed to receive response from database.\n"));