From: Christian Grothoff Date: Tue, 27 Oct 2015 17:23:59 +0000 (+0000) Subject: -fix SEGV X-Git-Tag: initial-import-from-subversion-38251~1182 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5131f579f895086be91b6d00ab4f38d5d237209e;p=oweals%2Fgnunet.git -fix SEGV --- diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index f69cd80cc..95eeb8788 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c @@ -763,7 +763,8 @@ demultiplexer (void *cls, bytes_msg = ntohl (okm->bytes_msg); bytes_physical = ntohl (okm->bytes_physical); LOG (GNUNET_ERROR_TYPE_DEBUG, - "Receiving SEND_OK message, transmission %s.\n", + "Receiving SEND_OK message, transmission to %s %s.\n", + GNUNET_i2s (&okm->peer), ntohl (okm->success) == GNUNET_OK ? "succeeded" : "failed"); n = neighbour_find (h, @@ -1106,8 +1107,6 @@ schedule_transmission_task (void *cls, } else { - if (GNUNET_YES != n->is_ready) - return; /* service not ready for another one */ n = GNUNET_CONTAINER_heap_peek (h->ready_heap); if (NULL == n) return; /* no pending messages */ @@ -1748,7 +1747,9 @@ GNUNET_TRANSPORT_get_hello_cancel (struct GNUNET_TRANSPORT_GetHelloHandle *ghh) if (NULL != ghh->notify_task) GNUNET_SCHEDULER_cancel (ghh->notify_task); - GNUNET_CONTAINER_DLL_remove (handle->hwl_head, handle->hwl_tail, ghh); + GNUNET_CONTAINER_DLL_remove (handle->hwl_head, + handle->hwl_tail, + ghh); GNUNET_free (ghh); }