summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/smb2_server.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index df2557080b..009cc77e9f 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -551,9 +551,7 @@ static struct smbd_smb2_request *dup_smb2_req(const struct smbd_smb2_request *re
outvec[i+2].iov_base = ((uint8_t *)outvec[i].iov_base) +
(OUTVEC_ALLOC_SIZE - 1);
outvec[i+2].iov_len = 1;
- } else if (!dup_smb2_vec(outvec,
- req->out.vector,
- i)) {
+ } else if (!dup_smb2_vec(outvec, req->out.vector, i+2)) {
break;
}
}