summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorDavid Ramos <daramos@stanford.edu>2014-06-01 14:30:10 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-06-01 14:31:57 +0100
commit2ce540743e0f0e764392bc95d6f420ae8ea7c14d (patch)
treeb9b663ef15d722ef225642416e740cfd76eb045a /ssl
parent8e928aab02a4ebb491b6950d2829edad90e73245 (diff)
Allocate extra space when NETSCAPE_HANG_BUG defined.
Make sure there is an extra 4 bytes for server done message when NETSCAPE_HANG_BUG is defined. PR#3361 (cherry picked from commit 673c42b2380c34e7500f05e7f00c674cc677a065)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/s3_srvr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c
index 59ca04a0fd..06c7b008e5 100644
--- a/ssl/s3_srvr.c
+++ b/ssl/s3_srvr.c
@@ -1762,6 +1762,11 @@ int ssl3_send_certificate_request(SSL *s)
s->init_num=n+4;
s->init_off=0;
#ifdef NETSCAPE_HANG_BUG
+ if (!BUF_MEM_grow_clean(buf, s->init_num + 4))
+ {
+ SSLerr(SSL_F_SSL3_SEND_CERTIFICATE_REQUEST,ERR_R_BUF_LIB);
+ goto err;
+ }
p=(unsigned char *)s->init_buf->data + s->init_num;
/* do the header */