From c99b94be3efe8344569a048215301c6053d340a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulf=20M=C3=B6ller?= Date: Fri, 28 Dec 2001 17:13:10 +0000 Subject: [PATCH] ssl3_read_bytes bug fix Submitted by: D P Chang Reviewed by: Bodo --- CHANGES | 4 +++- ssl/s3_pkt.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index fddfadea39..8406746be0 100644 --- a/CHANGES +++ b/CHANGES @@ -4,7 +4,9 @@ Changes between 0.9.6c and 0.9.6d [XX xxx XXXX] - *) + *) Fix ssl3_read_bytes (ssl/s3_pkt.c): To ignore messages of unknown + type, we must throw them away by setting rr->length to 0. + [D P Chang ] Changes between 0.9.6b and 0.9.6c [21 dec 2001] diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index fbe9de9ed0..5f1f7ad303 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -1077,6 +1077,7 @@ start: /* TLS just ignores unknown message types */ if (s->version == TLS1_VERSION) { + rr->length = 0; goto start; } #endif -- 2.25.1