mirror of https://github.com/wolfSSL/wolfssh.git
Merge pull request #768 from LinuxJedi/client-crash
Fix crash when client has no hostnamepull/763/head
commit
34c3794396
|
@ -923,6 +923,9 @@ static THREAD_RETURN WOLFSSH_THREAD wolfSSH_Client(void* args)
|
||||||
if (config.user == NULL)
|
if (config.user == NULL)
|
||||||
err_sys("client requires a username parameter.");
|
err_sys("client requires a username parameter.");
|
||||||
|
|
||||||
|
if (config.hostname == NULL)
|
||||||
|
err_sys("client requires a hostname parameter.");
|
||||||
|
|
||||||
#ifdef SINGLE_THREADED
|
#ifdef SINGLE_THREADED
|
||||||
if (keepOpen)
|
if (keepOpen)
|
||||||
err_sys("Threading needed for terminal session\n");
|
err_sys("Threading needed for terminal session\n");
|
||||||
|
|
Loading…
Reference in New Issue