aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-07 02:51:22 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-07 02:51:22 +0000
commit64a1504f113ce75866b6f3e3a036f54bf6e09636 (patch)
tree1f6886101be7aface01f3860106cad5814bb7705 /apps/app_dial.c
parent913d02b6f368e0f1f67ade2bbcc1459dddcbbc98 (diff)
Don't unlock the dialed_interfaces list until we're done messing with the iterator.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@91693 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r--apps/app_dial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index b89f52097..22dd8d5fe 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -1160,8 +1160,8 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
strcpy(di->interface, interface);
AST_LIST_INSERT_TAIL(dialed_interfaces, di, list);
} else if (dialed) {
- AST_LIST_UNLOCK(dialed_interfaces);
ast_log(LOG_WARNING, "Skipping dialing interface '%s' again since it has already been dialed\n", di->interface);
+ AST_LIST_UNLOCK(dialed_interfaces);
fulldial++;
free(tmp);
continue;