[asterisk-commits] irroot: branch irroot/distrotech-customers-10 r341768 - /team/irroot/distrote...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 21 01:35:17 CDT 2011


Author: irroot
Date: Fri Oct 21 01:35:13 2011
New Revision: 341768

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=341768
Log:
Remove OBJ_KEY added incorectly when backporting app_queue

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=341768&r1=341767&r2=341768
==============================================================================
--- team/irroot/distrotech-customers-10/apps/app_queue.c (original)
+++ team/irroot/distrotech-customers-10/apps/app_queue.c Fri Oct 21 01:35:13 2011
@@ -8660,12 +8660,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