summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/smb2/create.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/libcli/smb2/create.c b/source4/libcli/smb2/create.c
index 552ac931c4..1a7f02b070 100644
--- a/source4/libcli/smb2/create.c
+++ b/source4/libcli/smb2/create.c
@@ -218,9 +218,9 @@ struct smb2_request *smb2_create_send(struct smb2_tree *tree, struct smb2_create
return NULL;
}
- status = smb2_create_blob_add(req, &blobs,
- SMB2_CREATE_TAG_RQLS,
- data_blob_const(data, 32));
+ status = smb2_create_blob_add(
+ req, &blobs, SMB2_CREATE_TAG_RQLS,
+ data_blob_const(data, sizeof(data)));
if (!NT_STATUS_IS_OK(status)) {
talloc_free(req);
return NULL;
@@ -236,9 +236,9 @@ struct smb2_request *smb2_create_send(struct smb2_tree *tree, struct smb2_create
return NULL;
}
- status = smb2_create_blob_add(req, &blobs,
- SMB2_CREATE_TAG_RQLS,
- data_blob_const(data, 52));
+ status = smb2_create_blob_add(
+ req, &blobs, SMB2_CREATE_TAG_RQLS,
+ data_blob_const(data, sizeof(data)));
if (!NT_STATUS_IS_OK(status)) {
talloc_free(req);
return NULL;