Fix yet another bug for client hello handling.
authorBodo Möller <bodo@openssl.org>
Sat, 11 Sep 1999 10:36:41 +0000 (10:36 +0000)
committerBodo Möller <bodo@openssl.org>
Sat, 11 Sep 1999 10:36:41 +0000 (10:36 +0000)
ssl/s3_srvr.c

index 5cb20a28a68a8a39a4e40b941cc5c132b9facebe..0cefa09d2fddba87638458e14a64532f6b3768c4 100644 (file)
@@ -1270,7 +1270,7 @@ static int ssl3_get_client_key_exchange(SSL *s)
                        goto f_err;
                        }
 
-               if ((p[0] != (s->version>>8)) || (p[1] != (s->version & 0xff)))
+               if ((p[0] != (s->client_version>>8)) || (p[1] != (s->client_version & 0xff)))
                        {
                        al=SSL_AD_DECODE_ERROR;
                        SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE,SSL_R_BAD_PROTOCOL_VERSION_NUMBER);