projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow tunnelserver to work with clients that have other peers.
[tinc]
/
src
/
node.c
diff --git
a/src/node.c
b/src/node.c
index
9f1a78a
..
2045361
100644
(file)
--- a/
src/node.c
+++ b/
src/node.c
@@
-1,7
+1,7
@@
/*
node.c -- node tree management
/*
node.c -- node tree management
- Copyright (C) 2001-200
4
Guus Sliepen <guus@tinc-vpn.org>,
- 2001-200
4 Ivo Timmermans <ivo@tinc-vpn.org>
+ Copyright (C) 2001-200
6
Guus Sliepen <guus@tinc-vpn.org>,
+ 2001-200
5 Ivo Timmermans
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-78,7
+78,6
@@
node_t *new_node(void)
n->subnet_tree = new_subnet_tree();
n->edge_tree = new_edge_tree();
n->subnet_tree = new_subnet_tree();
n->edge_tree = new_edge_tree();
- n->queue = list_alloc((list_action_t) free);
EVP_CIPHER_CTX_init(&n->packet_ctx);
n->mtu = MTU;
n->maxmtu = MTU;
EVP_CIPHER_CTX_init(&n->packet_ctx);
n->mtu = MTU;
n->maxmtu = MTU;
@@
-90,15
+89,6
@@
void free_node(node_t *n)
{
cp();
{
cp();
- if(n->queue)
- list_delete_list(n->queue);
-
- if(n->name)
- free(n->name);
-
- if(n->hostname)
- free(n->hostname);
-
if(n->key)
free(n->key);
if(n->key)
free(n->key);
@@
-115,6
+105,12
@@
void free_node(node_t *n)
if(n->mtuevent)
event_del(n->mtuevent);
if(n->mtuevent)
event_del(n->mtuevent);
+ if(n->hostname)
+ free(n->hostname);
+
+ if(n->name)
+ free(n->name);
+
free(n);
}
free(n);
}