diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-25 14:53:09 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-25 14:53:09 +0000 |
commit | 8e5083942e83f1de0e92deb4c93f6bd8ba870921 (patch) | |
tree | 081b1bd67128ecfbd1f7e2cf0902b66f7127a2f4 | |
parent | 580f3eea916676ec98322bba0daf9beed04bd898 (diff) |
Insure that we are not going to pass a NULL pointer to add_to_interfaces.
(closes issue #11840)
Reported by: junky
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@100344 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index a6b2d3f89..547132b6a 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1306,7 +1306,7 @@ static void rt_handle_member_record(struct call_queue *q, char *interface, const 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 @@ static int add_to_queue(const char *queuename, const char *interface, const char 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++; |