aboutsummaryrefslogtreecommitdiff
path: root/libssh/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/server.c')
-rw-r--r--libssh/server.c6
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);