diff options
-rw-r--r-- | source3/smbd/close.c | 2 | ||||
-rw-r--r-- | source3/smbd/fake_file.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index bc1182032d..f2d54445b9 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -447,6 +447,8 @@ int close_file(files_struct *fsp, enum file_close_type close_type) return close_directory(fsp, close_type); else if (fsp->is_stat) return close_stat(fsp); + else if (fsp->fake_file_handle != NULL) + return close_fake_file(fsp); else return close_normal_file(fsp, close_type); } diff --git a/source3/smbd/fake_file.c b/source3/smbd/fake_file.c index 1356baf1a8..b4f1f02b72 100644 --- a/source3/smbd/fake_file.c +++ b/source3/smbd/fake_file.c @@ -156,3 +156,9 @@ void destroy_fake_file_handle(FAKE_FILE_HANDLE **fh) talloc_destroy((*fh)->mem_ctx); (*fh) = NULL; } + +int close_fake_file(files_struct *fsp) +{ + file_free(fsp); + return 0; +} |