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 18:08:14 +0000 (19:08 +0100)
commit6f2de02624ec55d29f74c4c38994b56ec3250a10
tree4217eb7f254cb83c6a0685eb04e3465decbbf0b7
parenta884c91d76db2eadd34f96936ccf029659dd5942
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)
(cherry picked from commit 63414e64e66e376654e993ac966e3b2f9d849d3b)
ssl/statem/statem_srvr.c