Skip to content

Commit

Permalink
fix crash in ssh execute mode when no command given
Browse files Browse the repository at this point in the history
  • Loading branch information
Colum Paget committed Feb 19, 2020
1 parent f2aa854 commit 710418a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,13 @@ int SshFlags=0;
STREAM *S;


if (iPath)
{
ptr=iPath;
if (*ptr=='/') ptr++;
}
else ptr="";

//if SF_RDONLY is set, then we treat this as a 'file get'
if (Flags & SF_RDONLY)
{
Expand Down

0 comments on commit 710418a

Please sign in to comment.