Keep old method in case of an unsupported protocol
authorKurt Roeckx <kurt@roeckx.be>
Tue, 21 Oct 2014 18:45:15 +0000 (20:45 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Tue, 21 Oct 2014 19:04:09 +0000 (21:04 +0200)
commitb6ece4c1fcceb2ed740b75acc74463e92e363de6
tree213155aeb620543247b89344df0616b50cebe5ef
parentbb086221ddf6acc355cbee38be2eccec778db271
Keep old method in case of an unsupported protocol

When we're configured with no-ssl3 and we receive an SSL v3 Client Hello, we set
the method to NULL.  We didn't used to do that, and it breaks things.  This is a
regression introduced in 62f45cc27d07187b59551e4fad3db4e52ea73f2c.  Keep the old
method since the code is not able to deal with a NULL method at this time.

CVE-2014-3569, PR#3571

Reviewed-by: Emilia Käsper <emilia@openssl.org>
(cherry picked from commit 392fa7a952e97d82eac6958c81ed1e256e6b8ca5)
ssl/s23_srvr.c