diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-05 21:21:05 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-05 21:21:05 +0000 |
commit | 637d35675d2723214401655618dd07d74cd6128a (patch) | |
tree | f1274a1025eae458209e8780b51833be32a0a5e2 /include | |
parent | fbf9fd7f6e38c2bb5e77afd5de5569a2f33cce9f (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: http://svn.digium.com/svn/asterisk/trunk@245147 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/astobj2.h | 3 |
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, |