aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-03-08 09:54:38 +0000
committerAndreas Schneider <mail@cynapses.org>2009-03-08 09:54:38 +0000
commitd3e64a744e9b847f8b316bd5ff1805bb79f9a5ac (patch)
tree3b960e6bd9e3274138cdebefd9b591374960aa62 /libssh
parentfad349fecdf664f8c7113decabf0482cc0f83c3c (diff)
downloadlibssh-d3e64a744e9b847f8b316bd5ff1805bb79f9a5ac.tar.gz
libssh-d3e64a744e9b847f8b316bd5ff1805bb79f9a5ac.tar.xz
libssh-d3e64a744e9b847f8b316bd5ff1805bb79f9a5ac.zip
Fix build on Windows.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@240 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh')
-rw-r--r--libssh/session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libssh/session.c b/libssh/session.c
index c8e5a681..36028714 100644
--- a/libssh/session.c
+++ b/libssh/session.c
@@ -48,7 +48,9 @@ SSH_SESSION *ssh_new(void) {
session->log_indent=0;
session->out_buffer=buffer_new();
session->in_buffer=buffer_new();
+#ifndef _WIN32
session->agent=agent_new(session);
+#endif /* _WIN32 */
return session;
}
@@ -77,8 +79,10 @@ void ssh_cleanup(SSH_SESSION *session){
// delete all channels
while(session->channels)
channel_free(session->channels);
+#ifndef _WIN32
if (session->agent)
agent_free(session->agent);
+#endif /* _WIN32 */
if(session->client_kex.methods)
for(i=0;i<10;i++)
if(session->client_kex.methods[i])