From f53ee1284f785e85fea33506263f76757335ee20 Mon Sep 17 00:00:00 2001 From: Uri Simchoni Date: Fri, 10 Nov 2017 21:32:49 +0200 Subject: [PATCH] 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 Reviewed-by: Jeremy Allison --- source3/smbd/reply.c | 3 --- 1 file changed, 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); -- 2.47.3