1 diff --git a/ssl/s3_enc.c b/google3/third_party/openssl/openssl/ssl/s3_enc.c 2 index 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 } 15