X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fs23_srvr.c;h=858420dbeffdaf1d16cc75019d18666b4399e32e;hp=38960ba259a03274bbd1afb7b9c613ed4155aeec;hb=392fa7a952e97d82eac6958c81ed1e256e6b8ca5;hpb=c882abd52269a59ed8e0510e5febf667428ece85 diff --git a/ssl/s23_srvr.c b/ssl/s23_srvr.c index 38960ba259..858420dbef 100644 --- a/ssl/s23_srvr.c +++ b/ssl/s23_srvr.c @@ -615,12 +615,14 @@ int ssl23_get_client_hello(SSL *s) if ((type == 2) || (type == 3)) { /* we have SSLv3/TLSv1 (type 2: SSL2 style, type 3: SSL3/TLS style) */ - s->method = ssl23_get_server_method(s->version); - if (s->method == NULL) + const SSL_METHOD *new_method; + new_method = ssl23_get_server_method(s->version); + if (new_method == NULL) { SSLerr(SSL_F_SSL23_GET_CLIENT_HELLO,SSL_R_UNSUPPORTED_PROTOCOL); goto err; } + s->method = new_method; if (!ssl_init_wbio_buffer(s,1)) goto err;