From f63a6702f5e56ba7743fe032f886d5167086f089 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 22 Jul 2010 11:56:28 +0000 Subject: [PATCH] fixing 1584 --- src/core/core_api.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/core_api.c b/src/core/core_api.c index 5f21d8478..16aa788f9 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -317,8 +317,10 @@ request_start (void *cls, size_t size, void *buf) struct GNUNET_CORE_TransmitHandle *th; size_t ret; - h->cth = NULL; + h->cth = NULL; th = h->pending_head; + if (th == NULL) + return 0; if (buf == NULL) { timeout_request (th, NULL); @@ -811,6 +813,7 @@ GNUNET_CORE_disconnect (struct GNUNET_CORE_Handle *handle) GNUNET_SCHEDULER_cancel (handle->sched, handle->reconnect_task); if (handle->client_notifications != NULL) GNUNET_CLIENT_disconnect (handle->client_notifications, GNUNET_NO); + GNUNET_break (handle->pending_head == NULL); GNUNET_free_non_null (handle->solicit_buffer); GNUNET_free (handle); } -- 2.25.1