diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-17 21:03:29 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-17 21:03:29 +0000 |
commit | f4b9549b24c00cd0f1885a09d8238dffa3ed8abd (patch) | |
tree | c5114ff5b58c76729bf3576ed31cb2dfe1469734 /apps | |
parent | df1efba447282140bf59c63eb152e3b445180d5e (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@114226 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_chanspy.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index ba0197e78..bd66f7dc5 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -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; |