From 8e7a998641bde5fdae31724add6a07444ed1309d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 26 Apr 2013 10:47:41 -0700 Subject: [PATCH] Fix bug #9822 - Samba crashing during Win8 sync. When refactoring the dptr desctructor, 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. Signed-off-by: Jeremy Allison --- source3/smbd/dir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 0c40a50..7dd959f 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -685,6 +685,7 @@ void dptr_CloseDir(files_struct *fsp) * all resource deallocation. */ dptr_close_internal(fsp->dptr); + fsp->dptr = NULL; } } -- 1.8.2.1