diff options
Diffstat (limited to 'ssh')
-rw-r--r-- | ssh/tomsg_clientlib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh/tomsg_clientlib.c b/ssh/tomsg_clientlib.c index daa2cf5..9898b66 100644 --- a/ssh/tomsg_clientlib.c +++ b/ssh/tomsg_clientlib.c @@ -191,6 +191,9 @@ static enum tomsg_retval version_negotiation(struct tomsg_client *client) { enum tomsg_retval tomsg_connect( const char *hostname, int port, struct tomsg_client **clientp) { + // In case we throw an error along the way + *clientp = NULL; + struct sshnc_client *conn; enum sshnc_retval ret = sshnc_connect( hostname, port, "tomsg", "tomsg", hostkey_checker, NULL, &conn); |