summaryrefslogtreecommitdiff
path: root/accel-pppd/extra/connlimit.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-01-19 17:47:42 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-01-19 17:47:42 +0400
commit5c8d9c33ca6d3c22473e8f2cd3cba4ecb47f0d71 (patch)
tree64a6a0b227ab38a0ccf09365ddd8fc7124a20f68 /accel-pppd/extra/connlimit.c
parent2356f41ba7bd042f39d9ca0a62b1319fa588dd4a (diff)
downloadaccel-ppp-5c8d9c33ca6d3c22473e8f2cd3cba4ecb47f0d71.tar.gz
accel-ppp-5c8d9c33ca6d3c22473e8f2cd3cba4ecb47f0d71.zip
connlimit: if burst timeout was detected don't increase burst counter
Diffstat (limited to 'accel-pppd/extra/connlimit.c')
-rw-r--r--accel-pppd/extra/connlimit.c2
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) {