From: Russell Bryant Date: Fri, 7 Dec 2007 02:51:22 +0000 (+0000) Subject: Don't unlock the dialed_interfaces list until we're done messing with the iterator. X-Git-Tag: 1.4.16~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c13539cb137bce2ad4d0dd558f42216aa64ecc5b;p=thirdparty%2Fasterisk.git Don't unlock the dialed_interfaces list until we're done messing with the iterator. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@91693 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index b89f520974..22dd8d5fee 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;