diff options
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r-- | source3/smbd/files.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 84968067082..2a0f6cebc0c 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -93,7 +93,7 @@ NTSTATUS file_new(struct smb_request *req, connection_struct *conn, GetTimeOfDay(&fsp->open_time); - if (sconn->conn) { + if (req) { struct smbXsrv_open *op = NULL; NTTIME now = timeval_to_nttime(&fsp->open_time); @@ -108,6 +108,9 @@ NTSTATUS file_new(struct smb_request *req, connection_struct *conn, op->compat = fsp; fsp->fnum = op->local_id; fsp->fh->gen_id = smbXsrv_open_hash(op); + } else { + DEBUG(10, ("%s: req==NULL, INTERNAL_OPEN_ONLY, smbXsrv_open " + "allocated\n", __func__)); } /* |