aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-12-22 10:47:49 +0000
committerChristian Grothoff <christian@grothoff.org>2010-12-22 10:47:49 +0000
commit6f4aa734d1a243146a32a9dbb2a3590df759d05b (patch)
treeabb3cb0bf1a800e6983fbd41b416b7d2e22d0174 /src
parentbd29c8e671f385684aa563ce12323a77c444f120 (diff)
downloadgnunet-6f4aa734d1a243146a32a9dbb2a3590df759d05b.tar.gz
gnunet-6f4aa734d1a243146a32a9dbb2a3590df759d05b.zip
fix
Diffstat (limited to 'src')
-rw-r--r--src/core/gnunet-service-core.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index c8662d56e..de830a396 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -1111,24 +1111,22 @@ schedule_peer_messages (struct Neighbour *n)
1111 car = pos; 1111 car = pos;
1112 pos = pos->next; 1112 pos = pos->next;
1113 } 1113 }
1114 if (car == NULL)
1115 return; /* no pending requests */
1116 GNUNET_CONTAINER_DLL_remove (n->active_client_request_head,
1117 n->active_client_request_tail,
1118 car);
1119 } 1114 }
1120 else 1115 else
1121 { 1116 {
1122 car = n->active_client_request_head; 1117 car = n->active_client_request_head;
1123 if (car == NULL)
1124 return; /* no pending requests */
1125 } 1118 }
1119 if (car == NULL)
1120 return; /* no pending requests */
1126#if DEBUG_CORE_CLIENT 1121#if DEBUG_CORE_CLIENT
1127 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1122 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1128 "Permitting client transmission request to `%s'\n", 1123 "Permitting client transmission request to `%s'\n",
1129 GNUNET_i2s (&n->peer)); 1124 GNUNET_i2s (&n->peer));
1130#endif 1125#endif
1131 c = car->client; 1126 c = car->client;
1127 GNUNET_CONTAINER_DLL_remove (n->active_client_request_head,
1128 n->active_client_request_tail,
1129 car);
1132 GNUNET_assert (GNUNET_YES == 1130 GNUNET_assert (GNUNET_YES ==
1133 GNUNET_CONTAINER_multihashmap_remove (c->requests, 1131 GNUNET_CONTAINER_multihashmap_remove (c->requests,
1134 &n->peer.hashPubKey, 1132 &n->peer.hashPubKey,
@@ -4634,6 +4632,7 @@ run (void *cls,
4634 GNUNET_CRYPTO_hash (&my_public_key, 4632 GNUNET_CRYPTO_hash (&my_public_key,
4635 sizeof (my_public_key), &my_identity.hashPubKey); 4633 sizeof (my_public_key), &my_identity.hashPubKey);
4636 self.public_key = &my_public_key; 4634 self.public_key = &my_public_key;
4635 self.peer = my_identity;
4637 self.last_activity = GNUNET_TIME_UNIT_FOREVER_ABS; 4636 self.last_activity = GNUNET_TIME_UNIT_FOREVER_ABS;
4638 self.status = PEER_STATE_KEY_CONFIRMED; 4637 self.status = PEER_STATE_KEY_CONFIRMED;
4639 self.is_connected = GNUNET_YES; 4638 self.is_connected = GNUNET_YES;