aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-10-05 12:00:49 +0000
committerChristian Grothoff <christian@grothoff.org>2014-10-05 12:00:49 +0000
commit3b15fb520cafca1bb869d7df975d27edba906a6a (patch)
treebd2af567824c0719c38abc1ae48f1b44a72c0905 /src/transport/gnunet-service-transport_neighbours.c
parentaea169e804eae51e53f970677949c50e749b9790 (diff)
downloadgnunet-3b15fb520cafca1bb869d7df975d27edba906a6a.tar.gz
gnunet-3b15fb520cafca1bb869d7df975d27edba906a6a.zip
-remove dead assignment
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index adf39d5bc..7abe36f3e 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -2172,6 +2172,7 @@ struct BlacklistCheckSwitchContext
2172 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out; 2172 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out;
2173}; 2173};
2174 2174
2175
2175/** 2176/**
2176 * Black list check result for try_connect call 2177 * Black list check result for try_connect call
2177 * If connection to the peer is allowed request adddress and 2178 * If connection to the peer is allowed request adddress and
@@ -2182,34 +2183,38 @@ struct BlacklistCheckSwitchContext
2182 */ 2183 */
2183static void 2184static void
2184try_connect_bl_check_cont (void *cls, 2185try_connect_bl_check_cont (void *cls,
2185 const struct GNUNET_PeerIdentity *peer, int result) 2186 const struct GNUNET_PeerIdentity *peer,
2187 int result)
2186{ 2188{
2187 struct BlacklistCheckSwitchContext *blc_ctx = cls; 2189 struct BlacklistCheckSwitchContext *blc_ctx = cls;
2188 struct NeighbourMapEntry *n; 2190 struct NeighbourMapEntry *n;
2189 2191
2190 GNUNET_CONTAINER_DLL_remove (pending_bc_head, pending_bc_tail, blc_ctx); 2192 GNUNET_CONTAINER_DLL_remove (pending_bc_head,
2193 pending_bc_tail,
2194 blc_ctx);
2191 GNUNET_free (blc_ctx); 2195 GNUNET_free (blc_ctx);
2192
2193 if (GNUNET_OK != result) 2196 if (GNUNET_OK != result)
2194 { 2197 {
2195 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 2198 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
2196 _("Blacklisting disapproved to connect to peer `%s'\n"), 2199 _("Blacklisting disapproved to connect to peer `%s'\n"),
2197 GNUNET_i2s (peer)); 2200 GNUNET_i2s (peer));
2198 return; 2201 return;
2199 } 2202 }
2200 2203
2201 /* Setup a new neighbour */ 2204 /* Setup a new neighbour */
2202 if (NULL != (n = lookup_neighbour(peer))) 2205 if (NULL != lookup_neighbour(peer))
2203 return; /* The neighbor was created in the meantime while waited for BL clients */ 2206 return; /* The neighbor was created in the meantime while waited for BL clients */
2204 2207
2205 n = setup_neighbour (peer); 2208 n = setup_neighbour (peer);
2206 2209
2207 /* Request address suggestions for this peer */ 2210 /* Request address suggestions for this peer */
2208 set_state_and_timeout (n, GNUNET_TRANSPORT_PS_INIT_ATS, 2211 set_state_and_timeout (n,
2209 GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT)); 2212 GNUNET_TRANSPORT_PS_INIT_ATS,
2213 GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT));
2210 GNUNET_ATS_reset_backoff (GST_ats, peer); 2214 GNUNET_ATS_reset_backoff (GST_ats, peer);
2211 n->suggest_handle = GNUNET_ATS_suggest_address (GST_ats, peer, 2215 n->suggest_handle = GNUNET_ATS_suggest_address (GST_ats,
2212 &address_suggest_cont, n); 2216 peer,
2217 &address_suggest_cont, n);
2213} 2218}
2214 2219
2215 2220