summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/features.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c
index cef604ced..1b430af4b 100644
--- a/main/features.c
+++ b/main/features.c
@@ -2892,7 +2892,7 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
if (strcasecmp(orig_channame, chan->name) != 0) {
/* old channel */
- if ((chan_ptr == ast_channel_get_by_name(orig_channame))) {
+ if ((chan_ptr = ast_channel_get_by_name(orig_channame))) {
ast_channel_lock(chan_ptr);
if (!ast_bridged_channel(chan_ptr)) {
struct ast_cdr *cur;