smbd:smb2_create: add comment about validity of check reconnect blob being only one
[garming/samba-autobuild/.git] / source3 / smbd / smb2_create.c
index 4f2edfca2ce15e3fa528178b75ec9d977efc36c4..93cccf844507535acef8730a6fca13738e833db1 100644 (file)
@@ -470,6 +470,8 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                if (in_context_blobs.num_blobs != 1) {
                        /*
                         * DHNC should be the only one.
+                        * TODO: This is only true for the oplock case!
+                        * For leases, lease request is required additionally!
                         */
                        tevent_req_nterror(req, NT_STATUS_OBJECT_NAME_NOT_FOUND);
                        return tevent_req_post(req, ev);
@@ -486,6 +488,8 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                if (in_context_blobs.num_blobs != 1) {
                        /*
                         * DH2C should be the only one.
+                        * TODO: This is only true for the oplock case!
+                        * For leases, lease request is required additionally!
                         */
                        tevent_req_nterror(req, NT_STATUS_OBJECT_NAME_NOT_FOUND);
                        return tevent_req_post(req, ev);