From 2ce15df5286e774e4d9bec0e1f3be84be84cb569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodo=20M=C3=B6ller?= Date: Mon, 15 Oct 2001 17:41:41 +0000 Subject: [PATCH] Fix ssl3_get_message handle message fragmentation correctly. --- ssl/s3_both.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl/s3_both.c b/ssl/s3_both.c index 21531d5db..cd9728037 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);