From f791facd62f95918269d2ab905e1b94133da6df7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 6 May 2012 17:44:19 +0000 Subject: -fix --- src/peerinfo/peerinfo_api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/peerinfo/peerinfo_api.c') diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index 570a5dc1f..c13224e83 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c @@ -749,9 +749,6 @@ GNUNET_PEERINFO_iterate_cancel (struct GNUNET_PEERINFO_IteratorContext *ic) struct GNUNET_PEERINFO_Handle *h; h = ic->h; - GNUNET_CONTAINER_DLL_remove (h->ic_head, - h->ic_tail, - ic); if (GNUNET_SCHEDULER_NO_TASK != ic->timeout_task) { GNUNET_SCHEDULER_cancel (ic->timeout_task); @@ -760,6 +757,9 @@ GNUNET_PEERINFO_iterate_cancel (struct GNUNET_PEERINFO_IteratorContext *ic) ic->callback = NULL; if (GNUNET_YES == ic->in_receive) return; /* need to finish processing */ + GNUNET_CONTAINER_DLL_remove (h->ic_head, + h->ic_tail, + ic); if (NULL != ic->ac) { GNUNET_CONTAINER_DLL_remove (h->ac_head, h->ac_tail, ic->ac); -- cgit v1.2.3