client CHANGE allow sharing client context among the threads
diff --git a/src/session_client_ssh.c b/src/session_client_ssh.c
index b30409a..e77aec7 100644
--- a/src/session_client_ssh.c
+++ b/src/session_client_ssh.c
@@ -100,6 +100,8 @@
     }
     free(opts->keys);
     free(opts->username);
+    opts->keys = NULL;
+    opts->username = NULL;
 }
 
 void