aboutsummaryrefslogtreecommitdiff
path: root/lib/vssh
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-01-23 20:05:22 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-01-24 10:27:31 +0100
commit920af1a6643af4f5f6ea58bead2bcc19c527f517 (patch)
tree734acf7a5f65de576c47e41f4afebf9787371a0a /lib/vssh
parent1c532870ed531ee173d8d0f0e067d3105f57f83f (diff)
wolfssh: make it init properly via Curl_ssh_init()
Closes #4846
Diffstat (limited to 'lib/vssh')
-rw-r--r--lib/vssh/wolfssh.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/vssh/wolfssh.c b/lib/vssh/wolfssh.c
index f9c43de70..363a52c77 100644
--- a/lib/vssh/wolfssh.c
+++ b/lib/vssh/wolfssh.c
@@ -1142,6 +1142,11 @@ size_t Curl_ssh_version(char *buffer, size_t buflen)
CURLcode Curl_ssh_init(void)
{
+ if(WS_SUCCESS != wolfSSH_Init()) {
+ DEBUGF(fprintf(stderr, "Error: wolfSSH_Init failed\n"));
+ return CURLE_FAILED_INIT;
+ }
+
return CURLE_OK;
}
void Curl_ssh_cleanup(void)