Enforce maximum amount of bytes sent/received on meta-connections.
[oweals/tinc.git] / src / connection.c
index fd7ae84383dd383236ec54654b156b85ba3ed9a7..8966d65dac02fc591b45d4a60aa32db40a9dd59f 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);