Skip to content
Snippets Groups Projects
Commit a7092f0a authored by Brian Degenhardt's avatar Brian Degenhardt
Browse files

fix a leaked channel lock (and future deadlock) when we try to pick up our own channel

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@179903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent bcf5ecde
Branches
Tags
No related merge requests found
...@@ -163,8 +163,8 @@ static int pickup_by_channel(struct ast_channel *chan, char *pickup) ...@@ -163,8 +163,8 @@ static int pickup_by_channel(struct ast_channel *chan, char *pickup)
/* Just check that we are not picking up the SAME as target */ /* Just check that we are not picking up the SAME as target */
if (chan->name != target->name && chan != target) { if (chan->name != target->name && chan != target) {
res = pickup_do(chan, target); res = pickup_do(chan, target);
ast_channel_unlock(target);
} }
ast_channel_unlock(target);
return res; return res;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment