blob: 89fff7b50a2e8df9a4b9b98a3d1fc9eda0458623 [file] [log] [blame]
Alexandre Savard75410672012-08-08 09:50:01 -04001diff --git a/ssl/s3_enc.c b/google3/third_party/openssl/openssl/ssl/s3_enc.c
2index 58386e1..b145970 100644
3--- a/ssl/s3_enc.c
4+++ b/ssl/s3_enc.c
5@@ -511,6 +511,9 @@ int ssl3_enc(SSL *s, int send)
6
7 /* we need to add 'i-1' padding bytes */
8 l+=i;
9+ /* the last of these zero bytes will be overwritten
10+ * with the padding length. */
11+ memset(&rec->input[rec->length], 0, i);
12 rec->length+=i;
13 rec->input[l-1]=(i-1);
14 }