Set s->version correctly for "natural" SSL 3.0 client hello
authorBodo Möller <bodo@openssl.org>
Mon, 13 Sep 1999 13:02:07 +0000 (13:02 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 13 Sep 1999 13:02:07 +0000 (13:02 +0000)
ssl/s23_srvr.c

index 8a3bc2e..a9fefef 100644 (file)
@@ -341,7 +341,10 @@ int ssl23_get_client_hello(SSL *s)
                                        }
                                }
                        else if (!(s->options & SSL_OP_NO_SSLv3))
+                               {
+                               s->version=SSL3_VERSION;
                                type=3;
+                               }
                        }
                else if ((strncmp("GET ", (char *)p,4) == 0) ||
                         (strncmp("POST ",(char *)p,5) == 0) ||