[svn-commits] mmichelson: trunk r100344 - /trunk/apps/app_queue.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jan 25 08:53:10 CST 2008


Author: mmichelson
Date: Fri Jan 25 08:53:09 2008
New Revision: 100344

URL: http://svn.digium.com/view/asterisk?view=rev&rev=100344
Log:
Insure that we are not going to pass a NULL pointer to add_to_interfaces.

(closes issue #11840)
Reported by: junky


Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=100344&r1=100343&r2=100344
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Fri Jan 25 08:53:09 2008
@@ -1306,7 +1306,7 @@
 		if ((m = create_queue_member(interface, membername, penalty, paused, state_interface))) {
 			m->dead = 0;
 			m->realtime = 1;
-			add_to_interfaces(state_interface);
+			add_to_interfaces(m->state_interface);
 			ao2_link(q->members, m);
 			ao2_ref(m, -1);
 			m = NULL;
@@ -3708,7 +3708,7 @@
 	ao2_lock(q);
 	if ((old_member = interface_exists(q, interface)) == NULL) {
 		if ((new_member = create_queue_member(interface, membername, penalty, paused, state_interface))) {
-			add_to_interfaces(state_interface);
+			add_to_interfaces(new_member->state_interface);
 			new_member->dynamic = 1;
 			ao2_link(q->members, new_member);
 			q->membercount++;




More information about the svn-commits mailing list