Skip to content

Commit

Permalink
Merge pull request wolfSSL#768 from LinuxJedi/client-crash
Browse files Browse the repository at this point in the history
Fix crash when client has no hostname
  • Loading branch information
JacobBarthelmeh authored Feb 10, 2025
2 parents 7ae768a + 669bf92 commit 34c3794
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/wolfssh/wolfssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 34c3794

Please sign in to comment.