summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorUri Simchoni <uri@samba.org>2017-11-10 21:32:49 +0200
committerJeremy Allison <jra@samba.org>2017-11-11 04:49:27 +0100
commitf53ee1284f785e85fea33506263f76757335ee20 (patch)
tree0e3b59b7bdeaecacc5714f9ef23dd2d29b0facfb /source3
parent6381044c0270a647c20935d22fd23f235d19b328 (diff)
downloadsamba-f53ee1284f785e85fea33506263f76757335ee20.tar.gz
smbd: remove calls to dptr_init_search_op()
dptr_init_search_op() invokes a VFS operation which is a no-op in all in-tree VFS modules. Furthermore, dptr_init_search_op() is not being called from SMB2 search code, which hints that no out-of-tree VFS module needs it. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 7b07078249b..9c82ebff03f 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1896,9 +1896,6 @@ void reply_search(struct smb_request *req)
DEBUG(4,("dptr_num is %d\n",dptr_num));
- /* Initialize per SMBsearch/SMBffirst/SMBfunique operation data */
- dptr_init_search_op(dirptr);
-
if ((dirtype&0x1F) == FILE_ATTRIBUTE_VOLUME) {
char buf[DIR_STRUCT_SIZE];
memcpy(buf,status,21);