summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2010-02-05 21:21:05 +0000
committerDavid Vossel <dvossel@digium.com>2010-02-05 21:21:05 +0000
commitbc16d44b73dec23189daf189671361e8e1b45259 (patch)
treef1274a1025eae458209e8780b51833be32a0a5e2 /include
parent4a03da160e783fbbee4cba2bb1e8f41da77752ab (diff)
fixes astobj2 unlinking of multiple objects when OBJ_MULTIPLE was disabled
When OBJ_MULTIPLE was off but OBJ_UNLINK was on, all the items in a bucket were being unlinked instead of just the first match. This fixes that. Review: https://reviewboard.asterisk.org/r/490/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@245147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/astobj2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asterisk/astobj2.h b/include/asterisk/astobj2.h
index 689b639b5..17279787c 100644
--- a/include/asterisk/astobj2.h
+++ b/include/asterisk/astobj2.h
@@ -666,7 +666,8 @@ enum search_flags {
* its refcount.
*/
OBJ_NODATA = (1 << 1),
- /*! Don't stop at the first match in ao2_callback().
+ /*! Don't stop at the first match in ao2_callback() unless the result of
+ * of the callback function == (CMP_STOP | CMP_MATCH).
*/
OBJ_MULTIPLE = (1 << 2),
/*! obj is an object of the same type as the one being searched for,