aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-01 16:39:09 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-01 16:39:09 +0000
commitda23f915f117e195b8599acdf14c1e0e97c67464 (patch)
tree3c29720c476628539d617cac95b3dba77b959140 /channels/chan_zap.c
parentc0c177f6ac55c1d9e07eb64424ef756b597744cb (diff)
Prevent an infinite loop when config processing gets to a jitterbuffer option
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46744 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index e23b5ddde..7ee774656 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -10419,7 +10419,7 @@ static int process_zap(struct ast_variable *v, int reload, int skipchannels)
int y;
int found_pseudo = 0;
- while(v) {
+ for (; v; v = v->next) {
if (!ast_jb_read_conf(&global_jbconf, v->name, v->value))
continue;
@@ -11042,7 +11042,6 @@ static int process_zap(struct ast_variable *v, int reload, int skipchannels)
}
} else if (!skipchannels)
ast_log(LOG_WARNING, "Ignoring %s\n", v->name);
- v = v->next;
}
if (!found_pseudo && reload == 0) {
/* Make sure pseudo isn't a member of any groups if