X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconnection.c;h=46b11c8546dce5aafc11c99ea79b461b07144656;hp=fd7ae84383dd383236ec54654b156b85ba3ed9a7;hb=985d19caf20058db3c764f0f6fbeafa8bcc59fcc;hpb=0f53f489916eae57dd47b7c871295efb9bf02323 diff --git a/src/connection.c b/src/connection.c index fd7ae843..46b11c85 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1,6 +1,6 @@ /* connection.c -- connection list management - Copyright (C) 2000-2012 Guus Sliepen , + Copyright (C) 2000-2016 Guus Sliepen , 2000-2005 Ivo Timmermans 2008 Max Rijevski @@ -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); @@ -139,7 +141,7 @@ void dump_connections(void) { for(node = connection_tree->head; node; node = node->next) { c = node->data; logger(LOG_DEBUG, " %s at %s options %x socket %d status %04x outbuf %d/%d/%d", - c->name, c->hostname, c->options, c->socket, bitfield_to_int(&c->status, sizeof c->status), + c->name, c->hostname, c->options, c->socket, bitfield_to_int(&c->status, sizeof(c->status)), c->outbufsize, c->outbufstart, c->outbuflen); }