aboutsummaryrefslogtreecommitdiff
path: root/libssh/session.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2005-08-18 10:08:20 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2005-08-18 10:08:20 +0000
commit56602ca031726a7682de3164b8f7f3da4881f7bb (patch)
treec524a0bec36899fda5c0ce90345ec8acab62a15c /libssh/session.c
parentf730d3b361f717135786bddb3c949bfae213bbff (diff)
downloadlibssh-56602ca031726a7682de3164b8f7f3da4881f7bb.tar.gz
libssh-56602ca031726a7682de3164b8f7f3da4881f7bb.tar.xz
libssh-56602ca031726a7682de3164b8f7f3da4881f7bb.zip
More work on the server side and sftp.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@9 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/session.c')
-rw-r--r--libssh/session.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libssh/session.c b/libssh/session.c
index ef23d03b..731446d1 100644
--- a/libssh/session.c
+++ b/libssh/session.c
@@ -24,7 +24,7 @@
#include <string.h>
#include "libssh/libssh.h"
#include "libssh/priv.h"
-
+#include "libssh/server.h"
#define FIRST_CHANNEL 42 // why not ? it helps to find bugs.
SSH_SESSION *ssh_new() {
@@ -72,6 +72,10 @@ void ssh_cleanup(SSH_SESSION *session){
private_key_free(session->dsa_key);
if(session->rsa_key)
private_key_free(session->rsa_key);
+ if(session->ssh_message){
+ ssh_message_free(session->ssh_message);
+ free(session->ssh_message);
+ }
memset(session,'X',sizeof(SSH_SESSION)); /* burn connection, it could hangs
sensitive datas */
free(session);