summaryrefslogtreecommitdiffstats
path: root/ssl/s23_srvr.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-09-03 16:49:11 +0000
committerBodo Möller <bodo@openssl.org>1999-09-03 16:49:11 +0000
commitf70df1b8870d4a0bee2769d8205d90beb5baa084 (patch)
tree9f294fed4a9eeb374920db62cc2cfe2b1772dcb4 /ssl/s23_srvr.c
parent074309b7ee16d7f124833e837cac2c9d847ae56d (diff)
Make previous bugfix actually work
Diffstat (limited to 'ssl/s23_srvr.c')
-rw-r--r--ssl/s23_srvr.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/ssl/s23_srvr.c b/ssl/s23_srvr.c
index 4735383c7a..9095df2793 100644
--- a/ssl/s23_srvr.c
+++ b/ssl/s23_srvr.c
@@ -186,7 +186,7 @@ end:
int ssl23_get_client_hello(SSL *s)
{
- char buf_space[10];
+ char buf_space[11];
char *buf= &(buf_space[0]);
unsigned char *p,*d,*dd;
unsigned int i;
@@ -202,8 +202,8 @@ int ssl23_get_client_hello(SSL *s)
if (!ssl3_setup_buffers(s)) goto err;
- n=ssl23_read_bytes(s,10);
- if (n != 10) return(n); /* n == -1 || n == 0 */
+ n=ssl23_read_bytes(s,11);
+ if (n != 11) return(n); /* n == -1 || n == 0 */
p=s->packet;
@@ -324,13 +324,8 @@ int ssl23_get_client_hello(SSL *s)
*/
/* we must look at client_version inside the client hello: */
- n=ssl23_read_bytes(s,11);
- /* restarts are no problem here, stay in initial state */
- if (n != 11)
- return(n); /* n == -1 || n == 0 */
-
v[0]=p[9]; v[1]=p[10];
- if (p[2] >= TLS1_VERSION_MINOR)
+ if (v[1] >= TLS1_VERSION_MINOR)
{
if (!(s->options & SSL_OP_NO_TLSv1))
{