diff options
author | Julius Bünger <buenger@mytum.de> | 2021-03-29 21:29:27 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2021-03-29 21:29:27 +0200 |
commit | 29be7985d06482beec4304b0f2eb57f23b6ec84d (patch) | |
tree | db524a0b73de6a2a937105940c29b465ecc85cde /src/rps/rps-test_util.c | |
parent | 0010646bbdeba3ceaebe478db977944560e3faaa (diff) |
-rps: fix bugs
Diffstat (limited to 'src/rps/rps-test_util.c')
-rw-r--r-- | src/rps/rps-test_util.c | 16 |
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 () { int ret; - ret = GNUNET_CONTAINER_multihashmap_iterate (open_files, - close_files_iter, - NULL); - GNUNET_CONTAINER_multihashmap_destroy (open_files); - open_files = NULL; - return ret; + if (NULL != open_files) + { + ret = GNUNET_CONTAINER_multihashmap_iterate (open_files, + close_files_iter, + NULL); + GNUNET_CONTAINER_multihashmap_destroy (open_files); + open_files = NULL; + return ret; + } + return GNUNET_YES; } |