From 0c3ead73925af354728c55bb956edc72d45de8de Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sat, 17 Mar 2007 22:35:59 +0000 Subject: found the nasty server bug ("ssh_accept: ") it was the session->alive which was null. I wonder how this bug survived my initial development ... git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@115 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/server.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libssh/server.c') diff --git a/libssh/server.c b/libssh/server.c index ec1d002..4060c54 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -264,6 +264,7 @@ static int dh_handshake_server(SSH_SESSION *session){ int ssh_accept(SSH_SESSION *session){ ssh_send_banner(session,1); ssh_crypto_init(); + session->alive=1; session->clientbanner=ssh_get_banner(session); server_set_kex(session); ssh_send_kex(session,1); -- cgit