diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-11-13 10:09:41 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-11-13 10:10:00 -0200 |
commit | 8105ffa61c2d5aba42fa0ceac92ae7f9f80f8b19 (patch) | |
tree | 241ad8d9483e7fd2b0b069652f7ed0662082d33a | |
parent | fcfa23da8b29c803a52e74243b8049b997e7f2ee (diff) | |
download | pfsense-8105ffa61c2d5aba42fa0ceac92ae7f9f80f8b19.zip pfsense-8105ffa61c2d5aba42fa0ceac92ae7f9f80f8b19.tar.gz |
Fix logic to find available next number for limiters and queues. It fixes #3998
-rw-r--r-- | etc/inc/shaper.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index f4eed16..9d60577 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -4409,7 +4409,7 @@ function dnqueue_find_nextnumber() { $found = false; foreach ($dnused as $dnnum) { if (($dnnum - $dnnumber) > 1) { - $dnnumber = $dnnum + 1; + $dnnumber = $dnnum - 1; $found = true; break; } else @@ -4435,7 +4435,7 @@ function dnpipe_find_nextnumber() { $found = false; foreach ($dnused as $dnnum) { if (($dnnum - $dnnumber) > 1) { - $dnnumber = $dnnum + 1; + $dnnumber = $dnnum - 1; $found = true; break; } else |