diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-01-22 17:55:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-01-22 17:55:36 +0000 |
commit | b56ccd0e277983775dd50d0ec0a3169a29411c28 (patch) | |
tree | 65bd86f261faf263181d3a99bf1c34527cf4d6b8 /src/topology | |
parent | 6776eda81f7712d24b4a54943642cf90af7ee4d8 (diff) | |
download | gnunet-b56ccd0e277983775dd50d0ec0a3169a29411c28.tar.gz gnunet-b56ccd0e277983775dd50d0ec0a3169a29411c28.zip |
fix
Diffstat (limited to 'src/topology')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 727d53815..1546dc764 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c | |||
@@ -279,10 +279,10 @@ force_disconnect (struct PeerList *pl) | |||
279 | const struct GNUNET_PeerIdentity *peer = &pl->id; | 279 | const struct GNUNET_PeerIdentity *peer = &pl->id; |
280 | struct DisconnectList *dl; | 280 | struct DisconnectList *dl; |
281 | 281 | ||
282 | if (NULL != dl->wh) | 282 | if (NULL != pl->wh) |
283 | { | 283 | { |
284 | GNUNET_TRANSPORT_blacklist_cancel (dl->wh); | 284 | GNUNET_TRANSPORT_blacklist_cancel (pl->wh); |
285 | dl->wh = NULL; | 285 | pl->wh = NULL; |
286 | } | 286 | } |
287 | pl->is_blocked = GNUNET_YES; | 287 | pl->is_blocked = GNUNET_YES; |
288 | dl = GNUNET_malloc (sizeof (struct DisconnectList)); | 288 | dl = GNUNET_malloc (sizeof (struct DisconnectList)); |
@@ -344,8 +344,8 @@ whitelist_peers () | |||
344 | if (pl->is_blocked) | 344 | if (pl->is_blocked) |
345 | { | 345 | { |
346 | pl->wh = GNUNET_TRANSPORT_blacklist (sched, cfg, | 346 | pl->wh = GNUNET_TRANSPORT_blacklist (sched, cfg, |
347 | peer, | 347 | &pl->id, |
348 | GNUNET_TIME_UNIT_FOREVER_ZERO, | 348 | GNUNET_TIME_UNIT_ZERO, |
349 | GNUNET_TIME_UNIT_FOREVER_REL, | 349 | GNUNET_TIME_UNIT_FOREVER_REL, |
350 | &whitelist_done, | 350 | &whitelist_done, |
351 | pl); | 351 | pl); |