From: Christian Grothoff Date: Wed, 27 Apr 2011 19:08:54 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~18602 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fc3809cc87d923552bc1c8ba20008f08174ad84d;p=oweals%2Fgnunet.git fix --- diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c index 7818ed05c..660e8f102 100644 --- a/src/datastore/datastore_api.c +++ b/src/datastore/datastore_api.c @@ -1215,12 +1215,12 @@ process_result_message (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_WARNING, _("Failed to receive response from database.\n")); do_disconnect (h); + free_queue_entry (qe); + if (rc.proc != NULL) + rc.proc (rc.proc_cls, + NULL, 0, NULL, 0, 0, 0, + GNUNET_TIME_UNIT_ZERO_ABS, 0); } - free_queue_entry (qe); - if (rc.proc != NULL) - rc.proc (rc.proc_cls, - NULL, 0, NULL, 0, 0, 0, - GNUNET_TIME_UNIT_ZERO_ABS, 0); return; } if (ntohs(msg->type) == GNUNET_MESSAGE_TYPE_DATASTORE_DATA_END)