Skip to content

Commit 34c3794

Browse files
Merge pull request #768 from LinuxJedi/client-crash
Fix crash when client has no hostname
2 parents 7ae768a + 669bf92 commit 34c3794

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/wolfssh/wolfssh.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,9 @@ static THREAD_RETURN WOLFSSH_THREAD wolfSSH_Client(void* args)
923923
if (config.user == NULL)
924924
err_sys("client requires a username parameter.");
925925

926+
if (config.hostname == NULL)
927+
err_sys("client requires a hostname parameter.");
928+
926929
#ifdef SINGLE_THREADED
927930
if (keepOpen)
928931
err_sys("Threading needed for terminal session\n");

0 commit comments

Comments
 (0)