aboutsummaryrefslogtreecommitdiff
path: root/src/seti/test_seti_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/seti/test_seti_api.c')
-rw-r--r--src/seti/test_seti_api.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/seti/test_seti_api.c b/src/seti/test_seti_api.c
index 22a3a06e5..9074fab41 100644
--- a/src/seti/test_seti_api.c
+++ b/src/seti/test_seti_api.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2012-2014 GNUnet e.V. 3 Copyright (C) 2012-2014, 2020 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
@@ -108,14 +108,18 @@ result_cb_set2 (void *cls,
108 break; 108 break;
109 case GNUNET_SETI_STATUS_DONE: 109 case GNUNET_SETI_STATUS_DONE:
110 oh2 = NULL; 110 oh2 = NULL;
111 GNUNET_assert (1 == count); 111 GNUNET_break (1 == count);
112 if (1 != count)
113 ret |= 2;
112 GNUNET_SETI_destroy (set2); 114 GNUNET_SETI_destroy (set2);
113 set2 = NULL; 115 set2 = NULL;
114 if (NULL == set1) 116 if (NULL == set1)
115 GNUNET_SCHEDULER_shutdown (); 117 GNUNET_SCHEDULER_shutdown ();
116 break; 118 break;
117 default: 119 case GNUNET_SETI_STATUS_DEL_LOCAL:
118 GNUNET_assert (0); 120 /* unexpected! */
121 ret = 1;
122 break;
119 } 123 }
120} 124}
121 125