diff options
Diffstat (limited to 'source3/libsmb/smb2cli_create.c')
-rw-r--r-- | source3/libsmb/smb2cli_create.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/libsmb/smb2cli_create.c b/source3/libsmb/smb2cli_create.c index 2145ce25f6..eaabf68431 100644 --- a/source3/libsmb/smb2cli_create.c +++ b/source3/libsmb/smb2cli_create.c @@ -162,8 +162,15 @@ static void smb2cli_create_done(struct tevent_req *subreq) struct iovec *iov; uint8_t *body; uint32_t offset, length; + static const struct smb2cli_req_expected_response expected[] = { + { + .status = NT_STATUS_OK, + .body_size = 0x59 + } + }; - status = smb2cli_req_recv(subreq, talloc_tos(), &iov, 89); + status = smb2cli_req_recv(subreq, talloc_tos(), &iov, + expected, ARRAY_SIZE(expected)); if (tevent_req_nterror(req, status)) { return; } |