Skip to content

Commit

Permalink
Fix border case
Browse files Browse the repository at this point in the history
  • Loading branch information
Teka101 authored and Teka101 committed Nov 18, 2018
1 parent 5e221e9 commit c7a5acd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SftpServer/FileSystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ tFSPath *FSCheckPath(const char *file)
{
tFSPath *path;

if (file == NULL)
return NULL;
path = FSResolvePath(file, NULL, 0);
if (FSCheckSecurity(path->realPath, path->path) != SSH2_FX_OK)
{
Expand Down

0 comments on commit c7a5acd

Please sign in to comment.