diff options
Diffstat (limited to 'src/set/set_api.c')
-rw-r--r-- | src/set/set_api.c | 8 |
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 | |||
1041 | GNUNET_SET_commit (struct GNUNET_SET_OperationHandle *oh, | 1041 | GNUNET_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); |