projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
074309b
)
Make previous bugfix actually work
author
Bodo Möller
<bodo@openssl.org>
Fri, 3 Sep 1999 16:49:11 +0000
(16:49 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Fri, 3 Sep 1999 16:49:11 +0000
(16:49 +0000)
ssl/s23_srvr.c
patch
|
blob
|
history
diff --git
a/ssl/s23_srvr.c
b/ssl/s23_srvr.c
index 4735383c7a395f7670688ba83c6ed8081684139f..9095df279334146ed0f8fec95deb31785379213d 100644
(file)
--- a/
ssl/s23_srvr.c
+++ b/
ssl/s23_srvr.c
@@
-186,7
+186,7
@@
end:
int ssl23_get_client_hello(SSL *s)
{
int ssl23_get_client_hello(SSL *s)
{
- char buf_space[1
0
];
+ char buf_space[1
1
];
char *buf= &(buf_space[0]);
unsigned char *p,*d,*dd;
unsigned int i;
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;
if (!ssl3_setup_buffers(s)) goto err;
- n=ssl23_read_bytes(s,1
0
);
- if (n != 1
0
) return(n); /* n == -1 || n == 0 */
+ n=ssl23_read_bytes(s,1
1
);
+ if (n != 1
1
) return(n); /* n == -1 || n == 0 */
p=s->packet;
p=s->packet;
@@
-324,13
+324,8
@@
int ssl23_get_client_hello(SSL *s)
*/
/* we must look at client_version inside the client hello: */
*/
/* 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];
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))
{
{
if (!(s->options & SSL_OP_NO_TLSv1))
{