s3: smbd: Make dptr_close() safe to call with an fsp handle stored in dptr->dir_hnd.
authorJeremy Allison <jra@samba.org>
Wed, 17 Jul 2019 19:57:00 +0000 (12:57 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 6 Aug 2019 14:23:33 +0000 (14:23 +0000)
commit5a038f511413fdfaa26e41ceee35c1523185b071
tree854622cc7b92b6651b7959a71b45cc50a1a4719d
parent2ba48f76ecaab3ddcd5d030a1dab3b5a889532b6
s3: smbd: Make dptr_close() safe to call with an fsp handle stored in dptr->dir_hnd.

SMB1 doesn't currently do this, but subsequent changes will add handle based
calls to SMB1 so dptr_close() has to be able to cleanly remove any back pointers.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c