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

index 15e8add7e687ee5e1f7bda824c9deef6b71fdbd3..a2ac1a7d4468ceb66f3c9699c2e45b0d292b646a 100644 (file)
@@ -1758,9 +1758,9 @@ GNUNET_CORE_peer_request_connect (struct GNUNET_CORE_Handle *h,
   msg->reserved = htonl (0);
   msg->timeout = GNUNET_TIME_relative_hton (timeout);
   msg->peer = *peer;
-  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);
   ret = GNUNET_malloc (sizeof (struct GNUNET_CORE_PeerRequestHandle));
   ret->h = h;
   ret->cm = cm;