projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9c13af
)
-do check return value from remove
author
Christian Grothoff
<christian@grothoff.org>
Fri, 21 Jun 2013 17:44:44 +0000
(17:44 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Fri, 21 Jun 2013 17:44:44 +0000
(17:44 +0000)
src/util/mq.c
patch
|
blob
|
history
diff --git
a/src/util/mq.c
b/src/util/mq.c
index d0253c40f073ebe0f597fe72b0b3aac7f0c7854c..54d3d4a2e47b70b9697637a023613d41afeb0df5 100644
(file)
--- a/
src/util/mq.c
+++ b/
src/util/mq.c
@@
-673,7
+673,8
@@
GNUNET_MQ_assoc_remove (struct GNUNET_MQ_Handle *mq, uint32_t request_id)
return NULL;
val = GNUNET_CONTAINER_multihashmap32_get (mq->assoc_map, request_id);
GNUNET_assert (NULL != val);
- GNUNET_CONTAINER_multihashmap32_remove (mq->assoc_map, request_id, val);
+ GNUNET_assert (GNUNET_YES ==
+ GNUNET_CONTAINER_multihashmap32_remove (mq->assoc_map, request_id, val));
return val;
}