From b56ccd0e277983775dd50d0ec0a3169a29411c28 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 22 Jan 2010 17:55:36 +0000 Subject: [PATCH] fix --- src/topology/gnunet-daemon-topology.c | 10 +++++----- 1 file 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) const struct GNUNET_PeerIdentity *peer = &pl->id; struct DisconnectList *dl; - if (NULL != dl->wh) + if (NULL != pl->wh) { - GNUNET_TRANSPORT_blacklist_cancel (dl->wh); - dl->wh = NULL; + GNUNET_TRANSPORT_blacklist_cancel (pl->wh); + pl->wh = NULL; } pl->is_blocked = GNUNET_YES; dl = GNUNET_malloc (sizeof (struct DisconnectList)); @@ -344,8 +344,8 @@ whitelist_peers () if (pl->is_blocked) { pl->wh = GNUNET_TRANSPORT_blacklist (sched, cfg, - peer, - GNUNET_TIME_UNIT_FOREVER_ZERO, + &pl->id, + GNUNET_TIME_UNIT_ZERO, GNUNET_TIME_UNIT_FOREVER_REL, &whitelist_done, pl); -- 2.25.1