summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-11-04 03:15:10 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-11-04 03:15:10 +0000
commit206d2cbc16c495f1f887ada1a4098a89630099a1 (patch)
treedeaad91d58ff6194faa0a335155227d9eb094f97 /apps
parent3313924572ef81e110ea6a800c98272a11fe8442 (diff)
Don't crash when state_interface is NULL.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 1c8dea31a..883b3d660 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1354,8 +1354,8 @@ static struct member *create_queue_member(const char *interface, const char *mem
ast_copy_string(cur->membername, interface, sizeof(cur->membername));
if (!strchr(cur->interface, '/'))
ast_log(LOG_WARNING, "No location at interface '%s'\n", interface);
- if (!strncmp(state_interface, "hint:", 5)) {
- char *tmp = ast_strdupa(state_interface), *context = tmp;
+ if (!strncmp(cur->state_interface, "hint:", 5)) {
+ char *tmp = ast_strdupa(cur->state_interface), *context = tmp;
char *exten = strsep(&context, "@") + 5;
ast_copy_string(cur->state_exten, exten, sizeof(cur->state_exten));