aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_cadet_client.c
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/gnunet-service-fs_cadet_client.c
parent2caf347246b7910a9141425e44ca57af130ae879 (diff)
downloadgnunet-25333278f926cddc9042ee6db29cc25e6673692b.tar.gz
gnunet-25333278f926cddc9042ee6db29cc25e6673692b.zip
fix #5586
Diffstat (limited to 'src/fs/gnunet-service-fs_cadet_client.c')
-rw-r--r--src/fs/gnunet-service-fs_cadet_client.c9
1 files changed, 7 insertions, 2 deletions
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