fixes
authorChristian Grothoff <christian@grothoff.org>
Thu, 14 Jan 2010 22:21:48 +0000 (22:21 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 14 Jan 2010 22:21:48 +0000 (22:21 +0000)
src/core/core_api.c
src/core/gnunet-service-core.c

index 78c5c030aed923c23d63ffe3f9f043fa88aee411..58ac3cc0e02458af2964a090677cb9bed605d437 100644 (file)
@@ -929,8 +929,6 @@ produce_configure_message (void *cls, size_t size, void *buf)
     ch->pending_tail = th->prev;
   else
     th->next->prev = th->prev;
-  GNUNET_assert (ch->submitted == NULL);
-  ch->submitted = th;
   return sizeof (struct RequestConfigureMessage);
 }
 
index e70afcd7797cc4b99772cf9fd7b51dfef6b44b84..b11e2d37f48ff159037b07967b9c24dba2a7f581 100644 (file)
@@ -2041,7 +2041,6 @@ set_key_retry_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   struct Neighbour *n = cls;
 
-  GNUNET_assert (n->status != PEER_STATE_KEY_CONFIRMED);
   n->retry_set_key_task = GNUNET_SCHEDULER_NO_TASK;
   n->set_key_retry_frequency =
     GNUNET_TIME_relative_multiply (n->set_key_retry_frequency, 2);
@@ -2156,7 +2155,6 @@ send_key (struct Neighbour *n)
     case PEER_STATE_KEY_RECEIVED:
       break;
     case PEER_STATE_KEY_CONFIRMED:
-      GNUNET_break (0);
       break;
     default:
       GNUNET_break (0);
@@ -2426,7 +2424,7 @@ handle_set_key (struct Neighbour *n, const struct SetKeyMessage *m)
     case PEER_STATE_KEY_CONFIRMED:
       if ((sender_status != PEER_STATE_KEY_RECEIVED) &&
           (sender_status != PEER_STATE_KEY_CONFIRMED))
-        {
+        {        
 #if DEBUG_CORE
           GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                       "Responding to `%s' with my own key (other peer has status %u), I was already fully up.\n",
@@ -2806,7 +2804,7 @@ handle_transport_receive (void *cls,
       return;
     }
   n->last_latency = latency;
-  up = n->status == PEER_STATE_KEY_CONFIRMED;
+  up = (n->status == PEER_STATE_KEY_CONFIRMED);
   type = ntohs (message->type);
   size = ntohs (message->size);
   switch (type)