Declaration of the peer channel in this scope was making it so the peer variable defined

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
This commit is contained in:
Mark Michelson
2008-04-17 21:03:29 +00:00
parent 171a6a24bb
commit 2dbf0778b3

View 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;