From: Uri Simchoni Date: Fri, 10 Nov 2017 19:32:49 +0000 (+0200) Subject: smbd: remove calls to dptr_init_search_op() X-Git-Tag: tevent-0.9.34~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f53ee1284f785e85fea33506263f76757335ee20;p=thirdparty%2Fsamba.git 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 --- 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);