Add sanity check to ssl_get_prev_session
authorMatt Caswell <matt@openssl.org>
Tue, 28 Apr 2015 14:28:23 +0000 (15:28 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 30 Apr 2015 22:21:53 +0000 (23:21 +0100)
commit9c5efc9c65be2d29fd01c02bba081b72ba025453
tree6e77f6fd3b7077e38332f6c4c19e91e30f8cbe93
parent75862f7741d52651eefc2ae71e81a0d0e9d4c5ec
Add sanity check to ssl_get_prev_session

Sanity check the |len| parameter to ensure it is positive. Thanks to Kevin
Wojtysiak (Int3 Solutions) and Paramjot Oberoi (Int3 Solutions) for
reporting this issue.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit cb0f400b0cea2d2943f99b1e89c04ff6ed748cd5)
ssl/ssl_sess.c