aboutsummaryrefslogtreecommitdiff
path: root/ssh/sshnc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh/sshnc.c')
-rw-r--r--ssh/sshnc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssh/sshnc.c b/ssh/sshnc.c
index 872be2a..7d42de8 100644
--- a/ssh/sshnc.c
+++ b/ssh/sshnc.c
@@ -142,6 +142,8 @@ enum sshnc_retval sshnc_connect(
void *userdata,
struct sshnc_client **clientp // output
) {
+ *clientp = NULL;
+
clear_additional_error();
const ssh_session session = ssh_new();