From: BJ Weschke Date: Sun, 3 Sep 2006 14:16:08 +0000 (+0000) Subject: Setting a retry of 0 is generally not a good idea and shouldn't be allowed. (#7574... X-Git-Tag: 1.2.12~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3b61adc5b12e81dff5b290acfb43f9a03365847;p=thirdparty%2Fasterisk.git Setting a retry of 0 is generally not a good idea and shouldn't be allowed. (#7574 - reported by regin) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41827 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 84fb751b1c..ffd2c7f2e7 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -777,7 +777,7 @@ static void queue_set_param(struct call_queue *q, const char *param, const char q->periodicannouncefrequency = atoi(val); } else if (!strcasecmp(param, "retry")) { q->retry = atoi(val); - if (q->retry < 0) + if (q->retry <= 0) q->retry = DEFAULT_RETRY; } else if (!strcasecmp(param, "wrapuptime")) { q->wrapuptime = atoi(val);