Enforce maximum amount of bytes sent/received on meta-connections.
[tinc] / src / connection.c
index fd7ae84..8966d65 100644 (file)
@@ -91,6 +91,8 @@ void free_connection_partially(connection_t *c) {
        c->outbufstart = 0;
        c->last_ping_time = 0;
        c->last_flushed_time = 0;
+       c->inbudget = 0;
+       c->outbudget = 0;
 
        if(c->inctx) {
                EVP_CIPHER_CTX_cleanup(c->inctx);