diff options
| author | jsorg71 <jay.sorg@gmail.com> | 2016-07-22 00:57:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-22 00:57:49 -0700 |
| commit | 9855b0f922fab1ceacdfdcb6d189a35ba3045d83 (patch) | |
| tree | 8849815cc449e4fbddace37e007b4ee5face95ac /sesman/chansrv/chansrv_fuse.c | |
| parent | 9ccbfb698530966ad51574a8e7e56991f6ef94bd (diff) | |
| parent | 8f3fb2f7c8ecd993b432796902446e643689b513 (diff) | |
| download | xrdp-proprietary-9855b0f922fab1ceacdfdcb6d189a35ba3045d83.tar.gz xrdp-proprietary-9855b0f922fab1ceacdfdcb6d189a35ba3045d83.zip | |
Merge pull request #403 from kenhys/avoid-chansrv-segv
chansrv: avoid chansrv SEGV when xinode is NULL
Diffstat (limited to 'sesman/chansrv/chansrv_fuse.c')
| -rw-r--r-- | sesman/chansrv/chansrv_fuse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sesman/chansrv/chansrv_fuse.c b/sesman/chansrv/chansrv_fuse.c index 0bb9ceff..80bde674 100644 --- a/sesman/chansrv/chansrv_fuse.c +++ b/sesman/chansrv/chansrv_fuse.c @@ -780,6 +780,11 @@ int xfuse_add_clip_dir_item(char *filename, int flags, int size, int lindex) 2, /* parent inode */ filename, S_IFREG); + if (xinode == NULL) + { + log_debug("failed to create file in xrdp filesystem"); + return -1; + } xinode->size = size; xinode->lindex = lindex; xinode->is_loc_resource = 1; |
