From: Christian Grothoff Date: Fri, 22 Jan 2010 17:55:36 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~22866 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b56ccd0e277983775dd50d0ec0a3169a29411c28;p=oweals%2Fgnunet.git fix --- 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);