From 224fc03cb56b0d76f6ad7f18dd0528d6b0e57fb1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 8 Feb 2011 15:05:00 -0800 Subject: Pass fsp to dptr_CloseDir(). Cope with setting the fd if we're closing an fd that opendir knows about. --- source3/smbd/smb2_find.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3/smbd/smb2_find.c') 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) { -- cgit