From 55e4cc6316d616a95d6e4706f270ae423246298e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 9 Jun 2017 16:30:33 +0200 Subject: [PATCH] fix Old smbd_smb2_create_state has some valuable info Bug: https://bugzilla.samba.org/show_bug.cgi?id=12832 --- source3/smbd/smb2_create.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 0a5d0ec..346e0a6 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -500,9 +500,18 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, DEBUG(10,("smbd_smb2_create: name[%s]\n", in_name)); } else { + struct smbd_smb2_create_state *old_state = tevent_req_data( + smb2req->subreq, struct smbd_smb2_create_state); + DEBUG(10,("smbd_smb2_create_send: reentrant for file %s\n", in_name )); + + state->id = old_state->id; + state->request_time = old_state->request_time; + state->open_rec = talloc_move(state, &old_state->open_rec); + state->open_was_deferred = old_state->open_was_deferred; } + TALLOC_FREE(smb2req->subreq); smb2req->subreq = req; -- 2.1.4