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/server.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'libssh/server.c') diff --git a/libssh/server.c b/libssh/server.c index 986ec047..b29fa68e 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -240,7 +240,6 @@ int ssh_bind_accept(ssh_bind sshbind, ssh_session session) { if (session->wanted_methods[i] == NULL) { privatekey_free(dsa); privatekey_free(rsa); - ssh_cleanup(session); return SSH_ERROR; } } @@ -253,7 +252,6 @@ int ssh_bind_accept(ssh_bind sshbind, ssh_session session) { if (session->bindaddr == NULL) { privatekey_free(dsa); privatekey_free(rsa); - ssh_cleanup(session); return SSH_ERROR; } } @@ -265,7 +263,6 @@ int ssh_bind_accept(ssh_bind sshbind, ssh_session session) { if (session->socket == NULL) { privatekey_free(dsa); privatekey_free(rsa); - ssh_cleanup(session); return SSH_ERROR; } ssh_socket_set_fd(session->socket, fd); -- cgit