aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-03 14:16:08 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-03 14:16:08 +0000
commit6d56a0a18951b4fd59b753c580c036941335583e (patch)
treeae32daec305ba98de6cc77f1d6398564be299bd0 /apps
parentdfe075a20495a17de30e986982a98dd763ee5b9d (diff)
Setting a retry of 0 is generally not a good idea and shouldn't be allowed. (#7574 - reported by regin)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@41827 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 84fb751b1..ffd2c7f2e 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);