diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-01-19 17:47:42 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-01-19 17:47:42 +0400 |
commit | 5c8d9c33ca6d3c22473e8f2cd3cba4ecb47f0d71 (patch) | |
tree | 64a6a0b227ab38a0ccf09365ddd8fc7124a20f68 | |
parent | 2356f41ba7bd042f39d9ca0a62b1319fa588dd4a (diff) | |
download | accel-ppp-5c8d9c33ca6d3c22473e8f2cd3cba4ecb47f0d71.tar.gz accel-ppp-5c8d9c33ca6d3c22473e8f2cd3cba4ecb47f0d71.zip |
connlimit: if burst timeout was detected don't increase burst counter
-rw-r--r-- | accel-pppd/extra/connlimit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/extra/connlimit.c b/accel-pppd/extra/connlimit.c index 243634e7..dcfc2deb 100644 --- a/accel-pppd/extra/connlimit.c +++ b/accel-pppd/extra/connlimit.c @@ -49,6 +49,8 @@ int __export connlimit_check(uint64_t key) it->ts = ts; list_move(&it->entry, &items); it->count = 0; + r = 0; + break; } it->count++; if (it->count >= conf_burst) { |