Fix crash in dtls1_get_record whilst in the listen state where you get two
[openssl.git] / ssl / d1_pkt.c
index edd17df54b50acb05d68832b261ac3ef5d98b96a..d7172603130c8c790d986d50f0686bd575733001 100644 (file)
@@ -642,8 +642,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)
                        {