]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Declaration of the peer channel in this scope was making it so the peer variable...
authorMark Michelson <mmichelson@digium.com>
Thu, 17 Apr 2008 21:03:29 +0000 (21:03 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 17 Apr 2008 21:03:29 +0000 (21:03 +0000)
in the outer scope was never set properly, therefore making iterating through the channel
list always restart from the beginning. This bug would have affected anyone who called
chanspy without specifying a first argument.

(closes issue #12461)
Reported by: stever28

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

apps/app_chanspy.c

index ba0197e78ec436503bc44ef07e5e4f7a08b8e77b..bd66f7dc59802ded498cb7042d8488be3f48d060 100644 (file)
@@ -543,7 +543,6 @@ static int common_exec(struct ast_channel *chan, const struct ast_flags *flags,
                        char *dup_group;
                        int x;
                        char *s;
-                       struct ast_channel *peer;
 
                        peer = peer_chanspy_ds->chan;