aboutsummaryrefslogtreecommitdiff
path: root/libssh/client.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-06-15 15:31:23 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2009-06-15 15:31:23 +0000
commit7dbc66e4a389b5d7cd075f73559415aaa0e555df (patch)
tree1aa963a15d00af7ac9fd64cb42d823be1366bed0 /libssh/client.c
parent387348968842dce1fd5da139fc858866c10830e2 (diff)
downloadlibssh-7dbc66e4a389b5d7cd075f73559415aaa0e555df.tar.gz
libssh-7dbc66e4a389b5d7cd075f73559415aaa0e555df.tar.xz
libssh-7dbc66e4a389b5d7cd075f73559415aaa0e555df.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/client.c')
-rw-r--r--libssh/client.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libssh/client.c b/libssh/client.c
index 07dc0f8..6255845 100644
--- a/libssh/client.c
+++ b/libssh/client.c
@@ -467,15 +467,10 @@ int ssh_connect(SSH_SESSION *session) {
session->alive = 0;
session->client = 1;
- if (ssh_crypto_init() < 0) {
+ if (ssh_init() < 0) {
leave_function();
return SSH_ERROR;
}
- if (ssh_socket_init() < 0) {
- leave_function();
- return SSH_ERROR;
- }
-
if (options->fd == -1 && options->host == NULL) {
ssh_set_error(session, SSH_FATAL, "Hostname required");
leave_function();