summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-19 16:31:33 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-19 16:31:33 +0000
commit2088429445cccbb5b5ac8d696e5544853bb60396 (patch)
tree3eb05d297d461d01aaddec28b106ce754317acc4 /src
parent755a4c63b24f08f40e459fbd90a15d8af9467435 (diff)
fixing #2014
Diffstat (limited to 'src')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 3bddbe013..ca7eb7b08 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -632,6 +632,7 @@ send_with_plugin (const struct GNUNET_PeerIdentity *target, const char *msgbuf,
return ret;
}
+
/**
* Task invoked to start a transmission to another peer.
*
@@ -654,13 +655,11 @@ transmit_send_continuation (void *cls,
const struct GNUNET_PeerIdentity *receiver,
int success)
{
- struct MessageQueue *mq;
+ struct MessageQueue *mq = cls;
struct NeighbourMapEntry *n;
struct NeighbourMapEntry *tmp;
tmp = lookup_neighbour (receiver);
-
- mq = cls;
n = mq->n;
if ((NULL != n) && (tmp != NULL) && (tmp == n))
{
@@ -721,8 +720,11 @@ try_transmission_to_peer (struct NeighbourMapEntry *n)
if (n->address == NULL)
{
+#if DEBUG_TRANSPORT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "No address for peer `%s'\n",
GNUNET_i2s (&n->id));
+#endif
+ GNUNET_CONTAINER_DLL_remove (n->messages_head, n->messages_tail, mq);
transmit_send_continuation (mq, &n->id, GNUNET_SYSERR);
GNUNET_assert (n->transmission_task == GNUNET_SCHEDULER_NO_TASK);
n->transmission_task = GNUNET_SCHEDULER_add_now (&transmission_task, n);