Skip to content

Commit

Permalink
Make DTLS always act as if read_ahead is set. The actual value of rea…
Browse files Browse the repository at this point in the history
…d_ahead

is ignored for DTLS.

RT#3657

Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit 8dd4ad0)
  • Loading branch information
mattcaswell committed Jan 27, 2015
1 parent 5226c62 commit 1895583
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssl/s3_pkt.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ int ssl3_read_n(SSL *s, int n, int max, int extend)
return -1;
}

if (!s->read_ahead)
/* We always act like read_ahead is set for DTLS */
if (!s->read_ahead && !SSL_IS_DTLS(s))
/* ignore max parameter */
max = n;
else {
Expand Down

0 comments on commit 1895583

Please sign in to comment.