diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/dir.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index aa7032de16..935810bf3e 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -555,9 +555,7 @@ NTSTATUS dptr_create(connection_struct *conn, const char *path, bool old_handle, int dptr_CloseDir(struct dptr_struct *dptr) { - struct smbd_server_connection *sconn = dptr->conn->sconn; - DLIST_REMOVE(sconn->smb1.searches.dirptrs, dptr); - TALLOC_FREE(dptr->dir_hnd); + dptr_close_internal(dptr); return 0; } |