X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconnlist.c;h=63f9e6c5be7ed7a6b95cdd743496ad5f974024db;hp=2965ced20a726180277eef5a2cb4030e1c17a9a5;hb=433858d410c1fedf8d2a5f2b4ecd7c980dd79dd2;hpb=35932fe6c8cb481eb687f98424776ce429570c21 diff --git a/src/connlist.c b/src/connlist.c index 2965ced2..63f9e6c5 100644 --- a/src/connlist.c +++ b/src/connlist.c @@ -17,12 +17,16 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: connlist.c,v 1.1.2.10 2000/10/29 00:02:17 guus Exp $ + $Id: connlist.c,v 1.1.2.14 2000/11/04 15:34:07 guus Exp $ */ +#include "config.h" + +#include #include #include "net.h" /* Don't ask. */ +#include "netutl.h" #include "config.h" #include "conf.h" #include @@ -64,6 +68,8 @@ cp free(p->cipher_pktkey); if(p->buffer) free(p->buffer); + if(p->config) + clear_config(&p->config); free(p); cp } @@ -161,7 +167,7 @@ void dump_conn_list(void) cp syslog(LOG_DEBUG, _("Connection list:")); - syslog(LOG_DEBUG, _("%s at %s port %hd flags %d sockets %d, %d status %04x"), + syslog(LOG_DEBUG, _(" %s at %s port %hd flags %d sockets %d, %d status %04x"), myself->name, myself->hostname, myself->port, myself->flags, myself->socket, myself->meta_socket, myself->status);