summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUri Simchoni <uri@samba.org>2017-11-10 21:35:54 +0200
committerJeremy Allison <jra@samba.org>2017-11-11 04:49:27 +0100
commitb8aa599f060ea6de7277b0af42659a09f4469165 (patch)
tree69b03a22f22d8720fbf9ca3e50151b00117cb363
parentf53ee1284f785e85fea33506263f76757335ee20 (diff)
downloadsamba-b8aa599f060ea6de7277b0af42659a09f4469165.tar.gz
smbd: remove calls to dptr_init_search_op() from TRANS2 search code
dptr_init_search_op() invokes VFS operations which are no-op in all in-tree VFS modules. Furthermore, it's not being called by the SMB2 search code, so probably it's not being used by any out-of-tree VFS module either. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/smbd/trans2.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index de6073a973f..dbad71be3b7 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2867,9 +2867,6 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
dptr_num = dptr_dnum(dirptr);
DEBUG(4,("dptr_num is %d, wcard = %s, attr = %d\n", dptr_num, mask, dirtype));
- /* Initialize per TRANS2_FIND_FIRST operation data */
- dptr_init_search_op(dirptr);
-
/* We don't need to check for VOL here as this is returned by
a different TRANS2 call. */
@@ -3237,9 +3234,6 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
dptr_TellDir(dirptr),
(int)backup_priv));
- /* Initialize per TRANS2_FIND_NEXT operation data */
- dptr_init_search_op(dirptr);
-
/* We don't need to check for VOL here as this is returned by
a different TRANS2 call. */