aboutsummaryrefslogtreecommitdiff
path: root/libssh/server.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2007-03-17 22:35:59 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2007-03-17 22:35:59 +0000
commit0c3ead73925af354728c55bb956edc72d45de8de (patch)
tree99d4ec2df60bb0da8387e66987d7d9bdd6aeb9fa /libssh/server.c
parent7b6c7fac53592780c9fd62fab1db65988dcddc80 (diff)
downloadlibssh-0c3ead73925af354728c55bb956edc72d45de8de.tar.gz
libssh-0c3ead73925af354728c55bb956edc72d45de8de.tar.xz
libssh-0c3ead73925af354728c55bb956edc72d45de8de.zip
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
Diffstat (limited to 'libssh/server.c')
-rw-r--r--libssh/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libssh/server.c b/libssh/server.c
index ec1d0026..4060c54c 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);