durable reconnect - create dhnq response blob for successful durable reconnect
authorMichael Adam <obnox@samba.org>
Sat, 18 Feb 2012 12:52:16 +0000 (13:52 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:41:50 +0000 (18:41 +0200)
source3/smbd/smb2_create.c

index bb2d00ad5a460b001061d4ab4be3e0394ad6d040..cd2b1a5562b90985d125bc24b1319035127bc75a 100644 (file)
@@ -910,11 +910,6 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                                tevent_req_nterror(req, status);
                                return tevent_req_post(req, ev);
                        }
-
-                       // TODO: response construction
-
-                       tevent_req_done(req);
-                       return tevent_req_post(req, ev);
                } else {
                        status = SMB_VFS_CREATE_FILE(smb1req->conn,
                                                     smb1req,
@@ -970,7 +965,12 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                        }
                }
 
-               if (dhnq && BATCH_OPLOCK_TYPE(result->oplock_type)) {
+               /*
+                * windows createst a dhnc response blob upon dbnc request.
+                * this seems to contradict the documentation, though
+                * --> TODO:dochelp
+                */
+               if (dhnc || (dhnq && BATCH_OPLOCK_TYPE(result->oplock_type))) {
                        uint8_t p[8];
                        DATA_BLOB blob = data_blob_const(p, sizeof(p));