diff options
author | Bodo Möller <bodo@openssl.org> | 2001-10-15 17:41:41 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-10-15 17:41:41 +0000 |
commit | 2ce15df5286e774e4d9bec0e1f3be84be84cb569 (patch) | |
tree | d3d6e16c555db436dd85b80d30ebd25cc1324717 /ssl | |
parent | 681bfae499a499cdca0629b3cec8a99d0fd7be43 (diff) | |
download | openssl-2ce15df5286e774e4d9bec0e1f3be84be84cb569.tar.gz |
Fix ssl3_get_message handle message fragmentation correctly.
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_both.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/s3_both.c b/ssl/s3_both.c index 21531d5dbe..cd97280374 100644 --- a/ssl/s3_both.c +++ b/ssl/s3_both.c @@ -440,6 +440,7 @@ long ssl3_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok) /* next state (stn) */ p=(unsigned char *)s->init_buf->data; n=s->s3->tmp.message_size; + n -= s->init_num; while (n > 0) { i=ssl3_read_bytes(s,SSL3_RT_HANDSHAKE,&p[s->init_num],n,0); |