diff options
author | Russell Bryant <russell@russellbryant.com> | 2011-06-03 18:25:11 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2011-06-03 18:25:11 +0000 |
commit | 6357719a827d0d42c0d14ec5a62ca14f1dbfe6eb (patch) | |
tree | 9fbd1d2842e050dcdd0d54961a9c1d0b9f9a989b /main | |
parent | a0468ca7fa1e8ffae1af3b00bf020507706d875c (diff) |
Fix some astobj2 iterator breakage, add another unit test.
Review: https://reviewboard.asterisk.org/r/1254/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@321752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/astobj2.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/main/astobj2.c b/main/astobj2.c index 5f4cda91e..5e61d5e5f 100644 --- a/main/astobj2.c +++ b/main/astobj2.c @@ -734,10 +734,6 @@ static void *internal_ao2_callback(struct ao2_container *c, } ast_free(cur); /* free the link record */ } - if ((match) && (!(flags & OBJ_UNLINK))) { - AST_LIST_REMOVE_CURRENT(entry); - AST_LIST_INSERT_HEAD(&c->buckets[i], cur, entry); - } if ((match & CMP_STOP) || !(flags & OBJ_MULTIPLE)) { /* We found our only (or last) match, so force an exit from |