From 6ec65c6f9d1aefddaccf0a9816dae0b68a46ea33 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Fri, 9 Oct 2009 22:50:48 +0200 Subject: ssh_disconnect doesn't free the session anymore --- libssh/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh/client.c') diff --git a/libssh/client.c b/libssh/client.c index 84fbd845..5ca79bed 100644 --- a/libssh/client.c +++ b/libssh/client.c @@ -647,6 +647,7 @@ int ssh_get_openssh_version(ssh_session session) { /** * @brief Disconnect from a session (client or server). + * The session can then be reused to open a new session. * * @param session The SSH session to disconnect. */ @@ -686,7 +687,6 @@ void ssh_disconnect(ssh_session session) { error: leave_function(); - ssh_cleanup(session); } const char *ssh_copyright(void) { -- cgit