summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index fb9dacce99..3fc36d5783 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -119,7 +119,6 @@ NTSTATUS file_new(struct smb_request *req, connection_struct *conn,
fsp->fnum = -1;
fsp->conn = conn;
- fsp->fh->gen_id = get_gen_count(sconn);
GetTimeOfDay(&fsp->open_time);
if (sconn->file_bmap != NULL) {
@@ -129,6 +128,8 @@ NTSTATUS file_new(struct smb_request *req, connection_struct *conn,
fsp->fnum = i + FILE_HANDLE_OFFSET;
SMB_ASSERT(fsp->fnum < 65536);
+
+ fsp->fh->gen_id = get_gen_count(sconn);
}
DLIST_ADD(sconn->files, fsp);