diff options
author | Jeremy Allison <jra@samba.org> | 2011-02-08 15:05:00 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-02-08 15:06:00 -0800 |
commit | 224fc03cb56b0d76f6ad7f18dd0528d6b0e57fb1 (patch) | |
tree | c7729d94124f674ce87419a8ff6b758b00cde445 /source3/smbd/smb2_find.c | |
parent | ad3d1adea3cdf42aee644dd853193b53a142c2f1 (diff) | |
download | samba-224fc03cb56b0d76f6ad7f18dd0528d6b0e57fb1.tar.gz samba-224fc03cb56b0d76f6ad7f18dd0528d6b0e57fb1.tar.bz2 samba-224fc03cb56b0d76f6ad7f18dd0528d6b0e57fb1.zip |
Pass fsp to dptr_CloseDir(). Cope with setting the fd if we're closing an fd that opendir knows about.
Diffstat (limited to 'source3/smbd/smb2_find.c')
-rw-r--r-- | source3/smbd/smb2_find.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/smbd/smb2_find.c b/source3/smbd/smb2_find.c index 9a7738ab76..b10446c3f1 100644 --- a/source3/smbd/smb2_find.c +++ b/source3/smbd/smb2_find.c @@ -317,10 +317,7 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx, } if (in_flags & SMB2_CONTINUE_FLAG_REOPEN) { - if (fsp->dptr) { - dptr_CloseDir(fsp->dptr); - fsp->dptr = NULL; - } + dptr_CloseDir(fsp); } if (fsp->dptr == NULL) { |