summaryrefslogtreecommitdiffstats
path: root/ssl/d1_pkt.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-01-03 00:45:13 +0000
committerMatt Caswell <matt@openssl.org>2015-01-08 11:28:17 +0000
commit46bf0ba87665c5aa215673d87e9ee7dd4ce28359 (patch)
tree8532ce162a11814922721c9c8e07c8e2e3b43c58 /ssl/d1_pkt.c
parent4b4c0a19211bf73d81de52de697a1a9dc60aed82 (diff)
Fix crash in dtls1_get_record whilst in the listen state where you get two
separate reads performed - one for the header and one for the body of the handshake record. CVE-2014-3571 Reviewed-by: Matt Caswell <matt@openssl.org> Conflicts: ssl/s3_pkt.c
Diffstat (limited to 'ssl/d1_pkt.c')
-rw-r--r--ssl/d1_pkt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c
index d12604e657..5eac25fbdd 100644
--- a/ssl/d1_pkt.c
+++ b/ssl/d1_pkt.c
@@ -595,8 +595,6 @@ again:
/* now s->packet_length == DTLS1_RT_HEADER_LENGTH */
i=rr->length;
n=ssl3_read_n(s,i,i,1);
- if (n <= 0) return(n); /* error or non-blocking io */
-
/* this packet contained a partial record, dump it */
if ( n != i)
{