From: Mark Michelson Date: Thu, 17 Apr 2008 21:03:29 +0000 (+0000) Subject: Declaration of the peer channel in this scope was making it so the peer variable... X-Git-Tag: 1.4.20-rc1~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2dbf0778b316f641a94d2c9c2fc943e9b2802683;p=thirdparty%2Fasterisk.git 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 --- 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;