aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2015-04-30 01:43:45 -0400
committerJay Satiro <raysatiro@yahoo.com>2015-04-30 01:44:45 -0400
commit926cb9ff65b36697e189f8dcd6b75e6eea847123 (patch)
tree46a57d502c0f617d015863e6469571071c308911 /lib
parent55db5bdff79a16200ff93e1a5d89e38acfdf0eb1 (diff)
schannel: Fix out of bounds array
Bug born in changes made several days ago 9a91e80. Bug: http://curl.haxx.se/mail/lib-2015-04/0199.html Reported-by: Brian Chrisman
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/schannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 74c32dfed..a42c88da6 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -283,7 +283,7 @@ schannel_connect_step2(struct connectdata *conn, int sockindex)
struct ssl_connect_data *connssl = &conn->ssl[sockindex];
unsigned char *reallocated_buffer;
size_t reallocated_length;
- SecBuffer outbuf[2];
+ SecBuffer outbuf[3];
SecBufferDesc outbuf_desc;
SecBuffer inbuf[2];
SecBufferDesc inbuf_desc;