From a0696678bce69e18b081a3fcdddcdc5b9e8fbb84 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 29 Mar 2016 12:09:17 +0000 Subject: [PATCH] be more lenient in the set api --- src/set/set_api.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 GNUNET_SET_commit (struct GNUNET_SET_OperationHandle *oh, struct GNUNET_SET_Handle *set) { - GNUNET_assert (NULL == oh->set); + if (NULL != oh->set) + { + /* Some other set was already commited for this + * operation, there is a logic bug in the client of this API */ + GNUNET_break (0); + return GNUNET_OK; + } if (GNUNET_YES == set->invalid) return GNUNET_SYSERR; GNUNET_assert (NULL != oh->conclude_mqm); -- 2.25.1