X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Frecord%2Frec_layer_s3.c;h=d588e784bded834b2ad83e3d91d04abdae72e377;hp=8adb3cdd08e6cc3d8544c4f0a2af95f37d4d534f;hb=e8eb224b8cd2b6dc29843eab01227eab00fcf774;hpb=f31d5e10058115679ba553d53bc0ee9bd17ea646 diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c index 8adb3cdd08..d588e784bd 100644 --- a/ssl/record/rec_layer_s3.c +++ b/ssl/record/rec_layer_s3.c @@ -788,7 +788,7 @@ int do_ssl3_write(SSL *s, int type, const unsigned char *buf, memset(wr, 0, sizeof wr); for (j = 0; j < numpipes; j++) { unsigned int version = s->version; - unsigned char *compressdata; + unsigned char *compressdata = NULL; size_t maxcomplen; unsigned int rectype; @@ -809,7 +809,7 @@ int do_ssl3_write(SSL *s, int type, const unsigned char *buf, && !s->renegotiate && TLS1_get_version(s) > TLS1_VERSION) version = TLS1_VERSION; - maxcomplen = pipelens[j] + (ssl_allow_compression(s) + maxcomplen = pipelens[j] + (s->compress != NULL ? SSL3_RT_MAX_COMPRESSED_OVERHEAD : 0); /* write the header */ if (!WPACKET_put_bytes_u8(&pkt[j], rectype)