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);
* connected to the core service; note that timeout is only meaningful if init is not NULL
* @param connects function to call on peer connect, can be NULL
* @param disconnects function to call on peer disconnect / timeout, can be NULL
+ * @param status_events function to call on changes to peer connection status, can be NULL
* @param inbound_notify function to call for all inbound messages, can be NULL
* @param inbound_hdr_only set to GNUNET_YES if inbound_notify will only read the
* GNUNET_MessageHeader and hence we do not need to give it the full message;
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);
}