Fix mis-sized buffer

Reported by rgacogne on twitter.
Also spotted by gcc-4.8 with -O2
This commit is contained in:
Manuel Pégourié-Gonnard 2013-09-20 11:37:39 +02:00
parent a7496f00ff
commit 34ced2dffe

View File

@ -254,7 +254,7 @@ static int ssl_parse_ticket( ssl_context *ssl,
unsigned char *enc_len_p = iv + 16; unsigned char *enc_len_p = iv + 16;
unsigned char *ticket = enc_len_p + 2; unsigned char *ticket = enc_len_p + 2;
unsigned char *mac; unsigned char *mac;
unsigned char computed_mac[16]; unsigned char computed_mac[32];
size_t enc_len, clear_len, i; size_t enc_len, clear_len, i;
unsigned char pad_len; unsigned char pad_len;