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
1.4
Mark Michelson 18 years ago
parent 171a6a24bb
commit 2dbf0778b3

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

Loading…
Cancel
Save