aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2005-08-13 12:58:41 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2005-08-13 12:58:41 +0000
commitf730d3b361f717135786bddb3c949bfae213bbff (patch)
treeb919bf43f8145f4384ca0f70e778be9a01c38678 /libssh
parent96a99bab7853998ec8c23da6bcb9ffb10855705d (diff)
downloadlibssh-f730d3b361f717135786bddb3c949bfae213bbff.tar.gz
libssh-f730d3b361f717135786bddb3c949bfae213bbff.tar.xz
libssh-f730d3b361f717135786bddb3c949bfae213bbff.zip
some adds, now it's possible to test it correctly.
channels still need some hack so they know the message system exists. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@8 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh')
-rw-r--r--libssh/messages.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/libssh/messages.c b/libssh/messages.c
index d5f6d0bd..0f0aa363 100644
--- a/libssh/messages.c
+++ b/libssh/messages.c
@@ -380,6 +380,26 @@ void ssh_message_free(SSH_MESSAGE *msg){
free(msg->auth_request.password);
}
break;
+ case SSH_CHANNEL_REQUEST_OPEN:
+ if(msg->channel_request_open.originator)
+ free(msg->channel_request_open.originator);
+ if(msg->channel_request_open.destination)
+ free(msg->channel_request_open.destination);
+ break;
+ case SSH_CHANNEL_REQUEST:
+ if(msg->channel_request.TERM)
+ free(msg->channel_request.TERM);
+ if(msg->channel_request.modes)
+ free(msg->channel_request.modes);
+ if(msg->channel_request.var_name)
+ free(msg->channel_request.var_name);
+ if(msg->channel_request.var_value)
+ free(msg->channel_request.var_value);
+ if(msg->channel_request.command)
+ free(msg->channel_request.command);
+ if(msg->channel_request.subsystem)
+ free(msg->channel_request.subsystem);
+ break;
}
memset(msg,0,sizeof(*msg));
free(msg);