diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-31 21:31:15 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-31 21:31:15 +0000 |
commit | 0beaf4fd7080895fc52f9ac727327d3f3def1da1 (patch) | |
tree | 139d2600faeb7323adaf7b13f0cd8d3a5ff7368e | |
parent | 6d237bab264e6341fed89b28582e6859bb9bbb5a (diff) |
Handle the case of a NULL state_interface when checking a realtime member.
Thanks to jmls for finding this issue.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@101576 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 9e1d9066e..c8690ff44 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1316,7 +1316,7 @@ static void rt_handle_member_record(struct call_queue *q, char *interface, const m->dead = 0; /* Do not delete this one. */ if (paused_str) m->paused = paused; - if (strcasecmp(state_interface, m->state_interface)) { + if (strcasecmp(ast_strlen_zero(state_interface) ? interface : state_interface, m->state_interface)) { remove_from_interfaces(m->state_interface); ast_copy_string(m->state_interface, state_interface, sizeof(m->state_interface)); add_to_interfaces(m->state_interface); |