ssl3_read_bytes bug fix
authorUlf Möller <ulf@openssl.org>
Fri, 28 Dec 2001 17:13:10 +0000 (17:13 +0000)
committerUlf Möller <ulf@openssl.org>
Fri, 28 Dec 2001 17:13:10 +0000 (17:13 +0000)
Submitted by: D P Chang <dpc@qualys.com>
Reviewed by: Bodo

CHANGES
ssl/s3_pkt.c

diff --git a/CHANGES b/CHANGES
index fddfadea39e13a4c1f9c6bcf22554266c5d968cb..8406746be0d317f347c7639565e804998a6d4e55 100644 (file)
--- 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 <dpc@qualys.com>]
 
  Changes between 0.9.6b and 0.9.6c  [21 dec 2001]
 
index fbe9de9ed0366482c41eccc103c28963d94bc120..5f1f7ad303e4a44a62c34fcfbd4103c57aad2028 100644 (file)
@@ -1077,6 +1077,7 @@ start:
                /* TLS just ignores unknown message types */
                if (s->version == TLS1_VERSION)
                        {
+                       rr->length = 0;
                        goto start;
                        }
 #endif