diff options
author | Matthew Jordan <mjordan@digium.com> | 2013-08-10 04:18:33 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2013-08-10 04:18:33 +0000 |
commit | fba429409ee60fdbb73dfe6968d08fd78fcd6b89 (patch) | |
tree | d268061a9c0466da3d35b3e7833ed27a18968108 /main | |
parent | 20bf856ba47a4ef04331ac84c0435cd70f65bacd (diff) |
Unlock the dial operation lock on a failed dial
If a dial operation fails, the pbx_outgoing_attempt routine will exit without
first having unlocked the outgoing dial lock. This would be a "bad thing".
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/pbx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c index ec96344cb..4db89f803 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -9983,6 +9983,7 @@ static int pbx_outgoing_attempt(const char *type, struct ast_format_cap *cap, co ast_cond_wait(&outgoing->cond, &outgoing->lock); if (outgoing->dial_res != AST_DIAL_RESULT_ANSWERED) { + ast_mutex_unlock(&outgoing->lock); /* The dial operation failed. */ return -1; } |