]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Setting a retry of 0 is generally not a good idea and shouldn't be allowed. (#7574...
authorBJ Weschke <bweschke@btwtech.com>
Sun, 3 Sep 2006 14:16:08 +0000 (14:16 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Sun, 3 Sep 2006 14:16:08 +0000 (14:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41827 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 84fb751b1c04f97acdffa9330d86416dbf471c85..ffd2c7f2e7c69a2c9313e550518ea0558f356225 100644 (file)
@@ -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);