aboutsummaryrefslogtreecommitdiff
path: root/src/client.c
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2018-07-31 16:15:01 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-03 16:43:03 +0200
commit9305762fcd16956d23451a0b2d43dabb6552d4aa (patch)
treed761be319b1a8eb766ad548214d084034a590aa9 /src/client.c
parente0e0d62a71401a7f85c42f46363d05bd79421888 (diff)
downloadlibssh-9305762fcd16956d23451a0b2d43dabb6552d4aa.tar.gz
libssh-9305762fcd16956d23451a0b2d43dabb6552d4aa.tar.xz
libssh-9305762fcd16956d23451a0b2d43dabb6552d4aa.zip
Remove internal calls to ssh_init
Since the call is made automatically when the library is loaded, these calls are no longer required (if the library is not linked statically). Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client.c b/src/client.c
index 40c238aa..00cbad38 100644
--- a/src/client.c
+++ b/src/client.c
@@ -505,9 +505,6 @@ int ssh_connect(ssh_session session) {
session->alive = 0;
session->client = 1;
- if (ssh_init() < 0) {
- return SSH_ERROR;
- }
if (session->opts.fd == SSH_INVALID_SOCKET &&
session->opts.host == NULL &&
session->opts.ProxyCommand == NULL) {