projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing parentheses in check for IPv4 multicast addresses.
[tinc]
/
src
/
connection.c
diff --git
a/src/connection.c
b/src/connection.c
index
c4c9fd4
..
9fd4002
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-1,6
+1,6
@@
/*
connection.c -- connection list management
/*
connection.c -- connection list management
- Copyright (C) 2000-200
6
Guus Sliepen <guus@tinc-vpn.org>,
+ Copyright (C) 2000-200
7
Guus Sliepen <guus@tinc-vpn.org>,
2000-2005 Ivo Timmermans
This program is free software; you can redistribute it and/or modify
2000-2005 Ivo Timmermans
This program is free software; you can redistribute it and/or modify
@@
-78,6
+78,9
@@
void free_connection(connection_t *c)
{
cp();
{
cp();
+ if(c->name)
+ free(c->name);
+
if(c->hostname)
free(c->hostname);
if(c->hostname)
free(c->hostname);
@@
-87,12
+90,31
@@
void free_connection(connection_t *c)
if(c->outkey)
free(c->outkey);
if(c->outkey)
free(c->outkey);
+ if(c->inctx) {
+ EVP_CIPHER_CTX_cleanup(c->inctx);
+ free(c->inctx);
+ }
+
+ if(c->outctx) {
+ EVP_CIPHER_CTX_cleanup(c->outctx);
+ free(c->outctx);
+ }
+
if(c->mychallenge)
free(c->mychallenge);
if(c->hischallenge)
free(c->hischallenge);
if(c->mychallenge)
free(c->mychallenge);
if(c->hischallenge)
free(c->hischallenge);
+ if(c->config_tree)
+ exit_configuration(&c->config_tree);
+
+ if(c->outbuf)
+ free(c->outbuf);
+
+ if(c->rsa_key)
+ RSA_free(c->rsa_key);
+
free(c);
}
free(c);
}