summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-13 15:40:23 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-14 18:13:31 +0200
commit5662166b231f64ba2003f917057b8ffb8886b8bc (patch)
treed482de7ae734cc9e5fe836a27c296f434ef96fd3 /source3
parentc7c351b8171ee5536090a04b61fb1566a6092af5 (diff)
downloadsamba-5662166b231f64ba2003f917057b8ffb8886b8bc.tar.gz
samba-5662166b231f64ba2003f917057b8ffb8886b8bc.tar.bz2
samba-5662166b231f64ba2003f917057b8ffb8886b8bc.zip
s3:smbd: only set fsp->fh->gen_id for a client connection
For faked connections, like dfs and printing, we leave it as 0. metze
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);