aboutsummaryrefslogtreecommitdiff
path: root/src/rps/rps-test_util.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2021-03-29 21:29:27 +0200
committerJulius Bünger <buenger@mytum.de>2021-03-29 21:29:27 +0200
commit29be7985d06482beec4304b0f2eb57f23b6ec84d (patch)
treedb524a0b73de6a2a937105940c29b465ecc85cde /src/rps/rps-test_util.c
parent0010646bbdeba3ceaebe478db977944560e3faaa (diff)
downloadgnunet-29be7985d06482beec4304b0f2eb57f23b6ec84d.tar.gz
gnunet-29be7985d06482beec4304b0f2eb57f23b6ec84d.zip
-rps: fix bugs
Diffstat (limited to 'src/rps/rps-test_util.c')
-rw-r--r--src/rps/rps-test_util.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/rps/rps-test_util.c b/src/rps/rps-test_util.c
index 497225973..6dee20c95 100644
--- a/src/rps/rps-test_util.c
+++ b/src/rps/rps-test_util.c
@@ -152,12 +152,16 @@ close_all_files ()
152{ 152{
153 int ret; 153 int ret;
154 154
155 ret = GNUNET_CONTAINER_multihashmap_iterate (open_files, 155 if (NULL != open_files)
156 close_files_iter, 156 {
157 NULL); 157 ret = GNUNET_CONTAINER_multihashmap_iterate (open_files,
158 GNUNET_CONTAINER_multihashmap_destroy (open_files); 158 close_files_iter,
159 open_files = NULL; 159 NULL);
160 return ret; 160 GNUNET_CONTAINER_multihashmap_destroy (open_files);
161 open_files = NULL;
162 return ret;
163 }
164 return GNUNET_YES;
161} 165}
162 166
163 167