Merge pull request #768 from LinuxJedi/client-crash

Fix crash when client has no hostname
pull/763/head
JacobBarthelmeh 2025-02-10 16:34:46 -07:00 committed by GitHub
commit 34c3794396
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -923,6 +923,9 @@ static THREAD_RETURN WOLFSSH_THREAD wolfSSH_Client(void* args)
if (config.user == NULL)
err_sys("client requires a username parameter.");
if (config.hostname == NULL)
err_sys("client requires a hostname parameter.");
#ifdef SINGLE_THREADED
if (keepOpen)
err_sys("Threading needed for terminal session\n");