From 25333278f926cddc9042ee6db29cc25e6673692b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 19 Feb 2019 10:52:46 +0100 Subject: fix #5586 --- src/fs/fs.conf.in | 3 +++ src/fs/gnunet-service-fs_cadet_client.c | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src/fs') diff --git a/src/fs/fs.conf.in b/src/fs/fs.conf.in index 92bcf776d..bd1d04001 100644 --- a/src/fs/fs.conf.in +++ b/src/fs/fs.conf.in @@ -11,6 +11,8 @@ BINARY = gnunet-service-fs ACCEPT_FROM = 127.0.0.1; ACCEPT_FROM6 = ::1; +# PREFIX = valgrind + # Do we introduce artificial delays? (may improve anonymity) DELAY = YES @@ -58,6 +60,7 @@ DISABLE_ANON_TRANSFER = NO # well anyway, so better have a moderate cap. MAX_CADET_CLIENTS = 128 +PREFIX = valgrind [gnunet-auto-share] BINARY = gnunet-auto-share diff --git a/src/fs/gnunet-service-fs_cadet_client.c b/src/fs/gnunet-service-fs_cadet_client.c index 61f73a50a..e6ece4346 100644 --- a/src/fs/gnunet-service-fs_cadet_client.c +++ b/src/fs/gnunet-service-fs_cadet_client.c @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . @@ -741,7 +741,12 @@ GSF_cadet_release_clients (void *cls, "Timeout on cadet channel to %s\n", GNUNET_i2s (&mh->target)); if (NULL != mh->channel) - GNUNET_CADET_channel_destroy (mh->channel); + { + struct GNUNET_CADET_Channel *channel = mh->channel; + + mh->channel = NULL; + GNUNET_CADET_channel_destroy (channel); + } return GNUNET_YES; } -- cgit v1.2.3