aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_chanspy.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-17 21:05:27 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-17 21:05:27 +0000
commit5968fa970059f597d9ff3d67fa28783b3b6cb819 (patch)
tree0ab11e98c1389ead007fe007b98968ed97601c6b /apps/app_chanspy.c
parent6024b24ab90288cb40b887921e2b3be5f69b2525 (diff)
Merged revisions 114227 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r114227 | mmichelson | 2008-04-17 16:04:40 -0500 (Thu, 17 Apr 2008) | 17 lines Merged revisions 114226 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114226 | mmichelson | 2008-04-17 16:03:29 -0500 (Thu, 17 Apr 2008) | 9 lines 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.6.0@114228 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_chanspy.c')
-rw-r--r--apps/app_chanspy.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index 0a351ef66..df06f5c44 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -615,7 +615,6 @@ static int common_exec(struct ast_channel *chan, const struct ast_flags *flags,
char *ext;
char *form_enforced;
int ienf = !myenforced;
- struct ast_channel *peer;
peer = peer_chanspy_ds->chan;