diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-15 15:31:23 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-29 17:50:04 +0200 |
commit | 7fa1804cf1fb1c57c53a864e055deff0bceca1bb (patch) | |
tree | e27da9a7f92167647be02284a7bff87d9fe804b5 /libssh/server.c | |
parent | ad86a378d9ef7eff8131a0495ca36ceb6a6eace0 (diff) | |
download | libssh-7fa1804cf1fb1c57c53a864e055deff0bceca1bb.tar.gz libssh-7fa1804cf1fb1c57c53a864e055deff0bceca1bb.tar.xz libssh-7fa1804cf1fb1c57c53a864e055deff0bceca1bb.zip |
ssh_init()
fixes in client.c and server.c for this
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@778 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/server.c')
-rw-r--r-- | libssh/server.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libssh/server.c b/libssh/server.c index f1c156f4..25021f68 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -135,7 +135,7 @@ int ssh_bind_listen(SSH_BIND *ssh_bind) { return -1; } - if (ssh_socket_init() < 0) { + if (ssh_init() < 0) { return -1; } @@ -479,10 +479,6 @@ int ssh_accept(SSH_SESSION *session) { return -1; } - if (ssh_crypto_init() < 0) { - return -1; - } - session->alive = 1; session->clientbanner = ssh_get_banner(session); |