summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-11 15:47:35 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-11 15:47:35 +0000
commit36d129ac45e9c5121a8c832706f42bbc94a1e387 (patch)
tree6670251ddefc8f4667bf01747a4b947548407c51 /anytun.cpp
parentrecever gets seq and sid now (diff)
fixed connection list
memory leak kd and sequence window created by createConnection
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/anytun.cpp b/anytun.cpp
index d6e0dbf..f4737f8 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -80,12 +80,12 @@ uint8_t salt[] = {
void createConnection(const std::string & remote_host , u_int16_t remote_port, ConnectionList & cl, u_int16_t seqSize)
{
- SeqWindow seq(seqSize);
+ SeqWindow * seq= new SeqWindow(seqSize);
seq_nr_t seq_nr_=0;
- KeyDerivation kd;
+ KeyDerivation * kd = new KeyDerivation;
// kd.init(Buffer(key, sizeof(key)), Buffer(salt, sizeof(salt)));
cLog.msg(Log::PRIO_NOTICE) << "added connection remote host " << remote_host << ":" << remote_port;
- ConnectionParam connparam ( kd, seq, seq_nr_, remote_host, remote_port);
+ ConnectionParam connparam ( (*kd), (*seq), seq_nr_, remote_host, remote_port);
cl.addConnection(connparam,std::string("default"));
}