Fix bug #9822 - Samba crashing during Win8 sync.
commitfe51e23801b24af43ce605f51f3e607fae74d3b7
authorJeremy Allison <jra@samba.org>
Fri, 26 Apr 2013 17:47:41 +0000 (26 10:47 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 5 Jun 2013 10:02:42 +0000 (5 12:02 +0200)
tree73f49b4e5c4cc5222fa45d85ac03fad1dcad028a
parentabff441e445431970d1e25fa79e10276e576d9e3
Fix bug #9822 - Samba crashing during Win8 sync.

When refactoring the dptr desctructor in the
fix for bug:

9778 (Samba directory code uses dirfd() without vectoring through a VFS call)

I removed the code to NULL out the struct smb_Dir *
pointer inside the fsp struct by mistake.

Re-add the NULLing out of that pointer when
closing a directory pointer associated with
an open file.

Reporter confirms it fixes the crash.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Sat Apr 27 20:44:55 CEST 2013 on sn-devel-104
(cherry picked from commit 251767cde9a146d8122d76e257ab232c05ad452a)
source3/smbd/dir.c