summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-19 10:52:46 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-19 10:52:46 +0100
commit25333278f926cddc9042ee6db29cc25e6673692b (patch)
treebdcbc0ec068b8a38fe81ab4867cc414023f830bd /src/fs
parent2caf347246b7910a9141425e44ca57af130ae879 (diff)
fix #5586
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/fs.conf.in3
-rw-r--r--src/fs/gnunet-service-fs_cadet_client.c9
2 files changed, 10 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>.
@@ -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;
}