]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixes chanspy enforced mode lacking a channel_unlock.
authorDavid Vossel <dvossel@digium.com>
Mon, 23 May 2011 14:46:17 +0000 (14:46 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 23 May 2011 14:46:17 +0000 (14:46 +0000)
(closes issue #19348)
Reported by: wdoekes
Patches:
      issue19348_chanspy_missing_channel_unlock.patch uploaded by wdoekes (license 717)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@320506 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_chanspy.c

index 89338aec05d54b3d525de800b0e0d8a1e957a2b6..97d86b7061d1324935b3422fb82eb07b290cb470 100644 (file)
@@ -938,6 +938,7 @@ static int common_exec(struct ast_channel *chan, struct ast_flags *flags,
                        }
 
                        if (!ienf) {
+                               ast_channel_unlock(peer);
                                continue;
                        }