[asterisk-commits] irroot: branch irroot/distrotech-customers-10 r333499 - /team/irroot/distrote...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Aug 27 14:57:31 CDT 2011
Author: irroot
Date: Sat Aug 27 14:57:27 2011
New Revision: 333499
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=333499
Log:
Fixup app_queue backport from trunk OBJ_KEY not in 10
Modified:
team/irroot/distrotech-customers-10/apps/app_queue.c
Modified: team/irroot/distrotech-customers-10/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-10/apps/app_queue.c?view=diff&rev=333499&r1=333498&r2=333499
==============================================================================
--- team/irroot/distrotech-customers-10/apps/app_queue.c (original)
+++ team/irroot/distrotech-customers-10/apps/app_queue.c Sat Aug 27 14:57:27 2011
@@ -8670,12 +8670,15 @@
*/
static struct member *find_member_by_queuename_and_interface(const char *queuename, const char *interface)
{
- struct member *mem = NULL;
+ struct member tmpmem, *mem = NULL;
struct call_queue *q;
+ ast_copy_string(tmpmem.interface, interface, sizeof(tmpmem.interface));
if ((q = load_realtime_queue(queuename))) {
ao2_lock(q);
- mem = ao2_find(q->members, interface, OBJ_KEY);
+ if ((mem = ao2_find(q->members, &tmpmem, OBJ_POINTER))) {
+ ao2_ref(mem, -1);
+ }
ao2_unlock(q);
queue_t_unref(q, "Expiring temporary reference.");
}
More information about the asterisk-commits
mailing list