dllfix
authorChristian Grothoff <christian@grothoff.org>
Fri, 12 Mar 2010 15:02:03 +0000 (15:02 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 12 Mar 2010 15:02:03 +0000 (15:02 +0000)
src/core/gnunet-service-core.c

index 185f1639ba2a22c8be71b1fe015c131fed45cc49..67b73b2b5cf4a4d4008f18c92e92880e443f5b67 100644 (file)
@@ -1175,8 +1175,10 @@ send_keep_alive (void *cls,
   me->deadline = GNUNET_TIME_relative_to_absolute (MAX_PING_DELAY);
   me->priority = PING_PRIORITY;
   me->size = sizeof (struct PingMessage);
-  n->encrypted_tail->next = me;
-  n->encrypted_tail = me;
+  GNUNET_CONTAINER_DLL_insert_after (n->encrypted_head,
+                                    n->encrypted_tail,
+                                    n->encrypted_tail,
+                                    me);
   pm = (struct PingMessage *) &me[1];
   pm->header.size = htons (sizeof (struct PingMessage));
   pm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_PING);
@@ -2436,8 +2438,10 @@ send_key (struct Neighbour *n)
   me->deadline = GNUNET_TIME_relative_to_absolute (MAX_PING_DELAY);
   me->priority = PING_PRIORITY;
   me->size = sizeof (struct PingMessage);
-  n->encrypted_tail->next = me;
-  n->encrypted_tail = me;
+  GNUNET_CONTAINER_DLL_insert_after (n->encrypted_head,
+                                    n->encrypted_tail,
+                                    n->encrypted_tail,
+                                    me);
   pm = (struct PingMessage *) &me[1];
   pm->header.size = htons (sizeof (struct PingMessage));
   pm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_PING);