diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/dir.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index a21a33ee47..f1a08bb34a 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -1045,7 +1045,6 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx, struct smb_filename smb_fname; uint32_t mode = 0; bool ok; - NTSTATUS status; cur_offset = dptr_TellDir(dirptr); prev_offset = cur_offset; @@ -1141,9 +1140,9 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx, TALLOC_FREE(dname); - status = copy_smb_filename(ctx, &smb_fname, _smb_fname); + *_smb_fname = cp_smb_filename(ctx, &smb_fname); TALLOC_FREE(pathreal); - if (!NT_STATUS_IS_OK(status)) { + if (*_smb_fname == NULL) { return false; } *_fname = fname; |