do not invert order
authorChristian Grothoff <christian@grothoff.org>
Mon, 21 Mar 2011 14:44:50 +0000 (14:44 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 21 Mar 2011 14:44:50 +0000 (14:44 +0000)
src/core/core_api.c

index a2ac1a7d4468ceb66f3c9699c2e45b0d292b646a..767ee29579a70064c4923494f5bf9c6c974d1e3b 100644 (file)
@@ -1922,9 +1922,9 @@ GNUNET_CORE_peer_change_preference (struct GNUNET_CORE_Handle *h,
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
              "Queueing CHANGE PREFERENCE request\n");
 #endif
-  GNUNET_CONTAINER_DLL_insert (h->control_pending_head,
-                              h->control_pending_tail,
-                              cm); 
+  GNUNET_CONTAINER_DLL_insert_tail (h->control_pending_head,
+                                   h->control_pending_tail,
+                                   cm); 
   pr->pcic = info;
   pr->pcic_cls = info_cls;
   if (h->control_pending_head == cm)