aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/peerinfo_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-06 17:44:19 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-06 17:44:19 +0000
commitf791facd62f95918269d2ab905e1b94133da6df7 (patch)
tree0bd9d206c965ab175be85384ba94a4a6ff1b46d7 /src/peerinfo/peerinfo_api.c
parentaca2d6639fb4fba2f520e60f146a6e8d9253f80b (diff)
downloadgnunet-f791facd62f95918269d2ab905e1b94133da6df7.tar.gz
gnunet-f791facd62f95918269d2ab905e1b94133da6df7.zip
-fix
Diffstat (limited to 'src/peerinfo/peerinfo_api.c')
-rw-r--r--src/peerinfo/peerinfo_api.c6
1 files changed, 3 insertions, 3 deletions
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)
749 struct GNUNET_PEERINFO_Handle *h; 749 struct GNUNET_PEERINFO_Handle *h;
750 750
751 h = ic->h; 751 h = ic->h;
752 GNUNET_CONTAINER_DLL_remove (h->ic_head,
753 h->ic_tail,
754 ic);
755 if (GNUNET_SCHEDULER_NO_TASK != ic->timeout_task) 752 if (GNUNET_SCHEDULER_NO_TASK != ic->timeout_task)
756 { 753 {
757 GNUNET_SCHEDULER_cancel (ic->timeout_task); 754 GNUNET_SCHEDULER_cancel (ic->timeout_task);
@@ -760,6 +757,9 @@ GNUNET_PEERINFO_iterate_cancel (struct GNUNET_PEERINFO_IteratorContext *ic)
760 ic->callback = NULL; 757 ic->callback = NULL;
761 if (GNUNET_YES == ic->in_receive) 758 if (GNUNET_YES == ic->in_receive)
762 return; /* need to finish processing */ 759 return; /* need to finish processing */
760 GNUNET_CONTAINER_DLL_remove (h->ic_head,
761 h->ic_tail,
762 ic);
763 if (NULL != ic->ac) 763 if (NULL != ic->ac)
764 { 764 {
765 GNUNET_CONTAINER_DLL_remove (h->ac_head, h->ac_tail, ic->ac); 765 GNUNET_CONTAINER_DLL_remove (h->ac_head, h->ac_tail, ic->ac);