projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Temporarily revert to old crypto code
[tinc]
/
src
/
connection.c
diff --git
a/src/connection.c
b/src/connection.c
index
a369cb8
..
21cb6aa
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-23,7
+23,6
@@
#include "system.h"
#include "splay_tree.h"
#include "system.h"
#include "splay_tree.h"
-#include "cipher.h"
#include "conf.h"
#include "list.h"
#include "logger.h"
#include "conf.h"
#include "list.h"
#include "logger.h"
@@
-74,8
+73,14
@@
void free_connection(connection_t *c) {
if(c->hostname)
free(c->hostname);
if(c->hostname)
free(c->hostname);
- cipher_close(&c->incipher);
- cipher_close(&c->outcipher);
+ if(c->inkey)
+ free(c->inkey);
+
+ if(c->outkey)
+ free(c->outkey);
+
+ if(c->mychallenge)
+ free(c->mychallenge);
if(c->hischallenge)
free(c->hischallenge);
if(c->hischallenge)
free(c->hischallenge);