projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Various small fixes.
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
86223b9
..
f1593b6
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.c,v 1.35.4.7
8 2000/11/20 19:41:10
guus Exp $
+ $Id: net.c,v 1.35.4.7
9 2000/11/20 22:13:03
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-1113,7
+1113,7
@@
cp
void terminate_connection(connection_t *cl)
{
connection_t *p;
void terminate_connection(connection_t *cl)
{
connection_t *p;
- subnet_t *s;
+ subnet_t *s
ubnet
;
rbl_t *rbl;
cp
rbl_t *rbl;
cp
@@
-1155,7
+1155,11
@@
cp
/* Remove the associated subnets */
/* Remove the associated subnets */
- rbl_delete_rbltree(cl->subnet_tree);
+ RBL_FOREACH(cl->subnet_tree, rbl)
+ {
+ subnet = (subnet_t *)rbl->data;
+ subnet_del(subnet);
+ }
/* Check if this was our outgoing connection */
/* Check if this was our outgoing connection */