diff options
Diffstat (limited to 'source3/libsmb/smb2cli_flush.c')
-rw-r--r-- | source3/libsmb/smb2cli_flush.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/libsmb/smb2cli_flush.c b/source3/libsmb/smb2cli_flush.c index c767148230..6f3de14787 100644 --- a/source3/libsmb/smb2cli_flush.c +++ b/source3/libsmb/smb2cli_flush.c @@ -72,8 +72,15 @@ static void smb2cli_flush_done(struct tevent_req *subreq) struct tevent_req); NTSTATUS status; struct iovec *iov; + static const struct smb2cli_req_expected_response expected[] = { + { + .status = NT_STATUS_OK, + .body_size = 0x04 + } + }; - status = smb2cli_req_recv(subreq, talloc_tos(), &iov, 4); + status = smb2cli_req_recv(subreq, talloc_tos(), &iov, + expected, ARRAY_SIZE(expected)); if (tevent_req_nterror(req, status)) { return; } |