diff options
author | Othmar Gsenger <otti@anytun.org> | 2007-12-11 15:47:35 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2007-12-11 15:47:35 +0000 |
commit | 36d129ac45e9c5121a8c832706f42bbc94a1e387 (patch) | |
tree | 6670251ddefc8f4667bf01747a4b947548407c51 /anytun.cpp | |
parent | recever 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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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")); } |