Correct pointer to be freed
authorRichard Levitte <levitte@openssl.org>
Sat, 28 Jan 2017 14:14:07 +0000 (15:14 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 28 Jan 2017 14:14:07 +0000 (15:14 +0100)
commit63414e64e66e376654e993ac966e3b2f9d849d3b
treef5b8e0e421c05d09d5ec37c3c6c891f442113d7b
parent26a39fa953c11c4257471570655b0193828d4721
Correct pointer to be freed

The pointer that was freed in the SSLv2 section of ssl_bytes_to_cipher_list
may have stepped up from its allocated position.  Use a pointer that is
guaranteed to point at the start of the allocated block instead.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2312)
ssl/statem/statem_srvr.c