smbXcli: allow up to 10 iovec elements for the bytes in smb1cli_req_create()
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Nov 2011 14:28:31 +0000 (15:28 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Nov 2011 15:00:07 +0000 (16:00 +0100)
The smb1cli_trans_* code uses up to 6 elements, which was too much for
the current limit of 5.

metze

libcli/smb/smbXcli_base.c

index d5ad1466ff39b4919db3f2635ba60b8efc798f40..b8be9c143fb2add0ef14df4188d098d2a3ca37e9 100644 (file)
@@ -164,7 +164,7 @@ struct smbXcli_req_state {
                uint16_t *vwv;
                uint8_t bytecount_buf[2];
 
-#define MAX_SMB_IOV 5
+#define MAX_SMB_IOV 10
                /* length_hdr, hdr, words, byte_count, buffers */
                struct iovec iov[1 + 3 + MAX_SMB_IOV];
                int iov_count;