Merge branch 'master' of git://tinc-vpn.org/tinc into 1.1
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 25 Feb 2012 21:52:57 +0000 (22:52 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 25 Feb 2012 21:52:57 +0000 (22:52 +0100)
1  2 
src/route.c

diff --cc src/route.c
@@@ -85,10 -80,9 +85,10 @@@ static uint16_t inet_checksum(void *dat
  static bool ratelimit(int frequency) {
        static time_t lasttime = 0;
        static int count = 0;
 +      time_t now = time(NULL);
        
        if(lasttime == now) {
-               if(++count > frequency)
+               if(count >= frequency)
                        return true;
        } else {
                lasttime = now;