diff options
-rw-r--r-- | src/fs/fs.conf.in | 3 | ||||
-rw-r--r-- | src/fs/gnunet-service-fs_cadet_client.c | 9 |
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 | |||
11 | ACCEPT_FROM = 127.0.0.1; | 11 | ACCEPT_FROM = 127.0.0.1; |
12 | ACCEPT_FROM6 = ::1; | 12 | ACCEPT_FROM6 = ::1; |
13 | 13 | ||
14 | # PREFIX = valgrind | ||
15 | |||
14 | # Do we introduce artificial delays? (may improve anonymity) | 16 | # Do we introduce artificial delays? (may improve anonymity) |
15 | DELAY = YES | 17 | DELAY = YES |
16 | 18 | ||
@@ -58,6 +60,7 @@ DISABLE_ANON_TRANSFER = NO | |||
58 | # well anyway, so better have a moderate cap. | 60 | # well anyway, so better have a moderate cap. |
59 | MAX_CADET_CLIENTS = 128 | 61 | MAX_CADET_CLIENTS = 128 |
60 | 62 | ||
63 | PREFIX = valgrind | ||
61 | 64 | ||
62 | [gnunet-auto-share] | 65 | [gnunet-auto-share] |
63 | BINARY = gnunet-auto-share | 66 | 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 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -741,7 +741,12 @@ GSF_cadet_release_clients (void *cls, | |||
741 | "Timeout on cadet channel to %s\n", | 741 | "Timeout on cadet channel to %s\n", |
742 | GNUNET_i2s (&mh->target)); | 742 | GNUNET_i2s (&mh->target)); |
743 | if (NULL != mh->channel) | 743 | if (NULL != mh->channel) |
744 | GNUNET_CADET_channel_destroy (mh->channel); | 744 | { |
745 | struct GNUNET_CADET_Channel *channel = mh->channel; | ||
746 | |||
747 | mh->channel = NULL; | ||
748 | GNUNET_CADET_channel_destroy (channel); | ||
749 | } | ||
745 | return GNUNET_YES; | 750 | return GNUNET_YES; |
746 | } | 751 | } |
747 | 752 | ||