From 2dbf0778b316f641a94d2c9c2fc943e9b2802683 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Thu, 17 Apr 2008 21:03:29 +0000 Subject: [PATCH] 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 --- apps/app_chanspy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index ba0197e78e..bd66f7dc59 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; -- 2.47.3