aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-03-29 12:09:17 +0000
committerFlorian Dold <florian.dold@gmail.com>2016-03-29 12:09:17 +0000
commita0696678bce69e18b081a3fcdddcdc5b9e8fbb84 (patch)
tree7deb551a8c1eeb85fee1b4e5e305b854777d0b89 /src
parent2f5ca7693694fe917b9e322f6dc1692a5cbaacbf (diff)
downloadgnunet-a0696678bce69e18b081a3fcdddcdc5b9e8fbb84.tar.gz
gnunet-a0696678bce69e18b081a3fcdddcdc5b9e8fbb84.zip
be more lenient in the set api
Diffstat (limited to 'src')
-rw-r--r--src/set/set_api.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/set/set_api.c b/src/set/set_api.c
index 6155410ef..503c0c9c2 100644
--- a/src/set/set_api.c
+++ b/src/set/set_api.c
@@ -1041,7 +1041,13 @@ int
1041GNUNET_SET_commit (struct GNUNET_SET_OperationHandle *oh, 1041GNUNET_SET_commit (struct GNUNET_SET_OperationHandle *oh,
1042 struct GNUNET_SET_Handle *set) 1042 struct GNUNET_SET_Handle *set)
1043{ 1043{
1044 GNUNET_assert (NULL == oh->set); 1044 if (NULL != oh->set)
1045 {
1046 /* Some other set was already commited for this
1047 * operation, there is a logic bug in the client of this API */
1048 GNUNET_break (0);
1049 return GNUNET_OK;
1050 }
1045 if (GNUNET_YES == set->invalid) 1051 if (GNUNET_YES == set->invalid)
1046 return GNUNET_SYSERR; 1052 return GNUNET_SYSERR;
1047 GNUNET_assert (NULL != oh->conclude_mqm); 1053 GNUNET_assert (NULL != oh->conclude_mqm);