X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fd1_both.c;h=ac0fcaa8fcfb896cce9330a45b5b9cc7d3dd9478;hp=bb52d92a290805bebac1fe359f5f338337539583;hb=099ccdb8084aff60efad0c91185cb465f9123859;hpb=9871417fb74dca48ea1dc85ae666a6529d113ff8;ds=sidebyside diff --git a/ssl/d1_both.c b/ssl/d1_both.c index bb52d92a29..ac0fcaa8fc 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -771,7 +771,9 @@ dtls1_process_out_of_seq_message(SSL *s, struct hm_header_st* msg_hdr, int *ok) /* read the body of the fragment (header has already been read */ i = s->method->ssl_read_bytes(s,SSL3_RT_HANDSHAKE, frag->fragment,frag_len,0); - if (i<=0 || (unsigned long)i!=frag_len) + if ((unsigned long)i!=frag_len) + i = -1; + if (i<=0) goto err; }