summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_manipulation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport_manipulation.c')
-rw-r--r--src/transport/gnunet-service-transport_manipulation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport_manipulation.c b/src/transport/gnunet-service-transport_manipulation.c
index eb520ec20..529cc26e1 100644
--- a/src/transport/gnunet-service-transport_manipulation.c
+++ b/src/transport/gnunet-service-transport_manipulation.c
@@ -671,13 +671,13 @@ GST_manipulation_peer_disconnect (const struct GNUNET_PeerIdentity *peer)
next = generic_dqe_head;
while (NULL != (dqe = next))
{
+ next = dqe->next;
if (0 == memcmp (&peer, &dqe->id, sizeof (dqe->id)))
{
GNUNET_CONTAINER_DLL_remove (generic_dqe_head, generic_dqe_tail, dqe);
if (NULL != dqe->cont)
dqe->cont (dqe->cont_cls, GNUNET_SYSERR, dqe->msg_size, 0);
GNUNET_free (dqe);
-
}
}
if (GNUNET_SCHEDULER_NO_TASK != generic_send_delay_task)